diff options
author | Bill Napier <napier@google.com> | 2010-08-27 14:03:03 -0700 |
---|---|---|
committer | Bill Napier <napier@google.com> | 2010-08-30 10:43:45 -0700 |
commit | c50e71a184ed1963d2358e92b4e196653d0a29fa (patch) | |
tree | ad7be30ae13e360fa7d4f5562aec800e57bd935c /src/com | |
parent | d003543b04ddd19de116cc51bffb50c1d97d7109 (diff) | |
download | packages_apps_Browser-c50e71a184ed1963d2358e92b4e196653d0a29fa.zip packages_apps_Browser-c50e71a184ed1963d2358e92b4e196653d0a29fa.tar.gz packages_apps_Browser-c50e71a184ed1963d2358e92b4e196653d0a29fa.tar.bz2 |
When checking for possible RLZ insertion, only check http Uri's.
BUG: 2952725
Change-Id: I0b8808b8b9c53d46ef40c75dd134c8e0bc5ef28a
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/browser/BrowserActivity.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java index 2ef5ee6..7db2a8d 100644 --- a/src/com/android/browser/BrowserActivity.java +++ b/src/com/android/browser/BrowserActivity.java @@ -2844,7 +2844,9 @@ public class BrowserActivity extends Activity // Determine if this URI appears to be for a Google search and does not have an RLZ parameter. // Taken largely from Chrome source, src/chrome/browser/google_url_tracker.cc private static boolean needsRlzString(Uri uri) { - if ((uri.getQueryParameter("q") != null) && (uri.getQueryParameter("rlz") == null)) { + String scheme = uri.getScheme(); + if (("http".equals(scheme) || "https".equals(scheme)) && + (uri.getQueryParameter("q") != null) && (uri.getQueryParameter("rlz") == null)) { String host = uri.getHost(); if (host == null) { return false; |