Hack to fix hosted accounts.

Search for ASIDAP using the /a/ path to find a hosted account.

Bug: 3396570
Change-Id: I10cbc7f337532d59e405804724e6bc0be4e669d8
diff --git a/src/com/android/browser/GoogleAccountLogin.java b/src/com/android/browser/GoogleAccountLogin.java
index 6bec8dc..f019b52 100644
--- a/src/com/android/browser/GoogleAccountLogin.java
+++ b/src/com/android/browser/GoogleAccountLogin.java
@@ -280,13 +280,15 @@
             return false;
         }
 
+        // Use /a/ to grab hosted cookies as well as the base set of google.com
+        // cookies.
         String cookies = CookieManager.getInstance().getCookie(
-                "http://www.google.com");
+                "http://www.google.com/a/");
         if (cookies != null) {
             StringTokenizer tokenizer = new StringTokenizer(cookies, ";");
             while (tokenizer.hasMoreTokens()) {
                 String cookie = tokenizer.nextToken().trim();
-                if (cookie.startsWith("SID=")) {
+                if (cookie.startsWith("SID=") || cookie.startsWith("ASIDAP=")) {
                     return true;
                 }
             }