From c50e71a184ed1963d2358e92b4e196653d0a29fa Mon Sep 17 00:00:00 2001 From: Bill Napier Date: Fri, 27 Aug 2010 14:03:03 -0700 Subject: When checking for possible RLZ insertion, only check http Uri's. BUG: 2952725 Change-Id: I0b8808b8b9c53d46ef40c75dd134c8e0bc5ef28a --- src/com/android/browser/BrowserActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/com') 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; -- cgit v1.1