Bug 1081288: Don't call String.toString. r=rnewman
authorChris Kitching <chriskitching@linux.com>
Fri, 10 Oct 2014 21:02:18 +0100
changeset 209917 1b962a92eff2f6f93b173ed5f664b218355c78a1
parent 209916 efd2ce78cdeb0fe686e3f35bdf97a209e2e9ce61
child 209918 8eb295a430d482bafed4ebdd9c0a4cd2e4a1505a
push id9304
push userchriskitching@linux.com
push dateSat, 11 Oct 2014 15:57:56 +0000
treeherderfx-team@1b962a92eff2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrnewman
bugs1081288
milestone35.0a1
Bug 1081288: Don't call String.toString. r=rnewman
mobile/android/base/home/BrowserSearch.java
--- a/mobile/android/base/home/BrowserSearch.java
+++ b/mobile/android/base/home/BrowserSearch.java
@@ -436,17 +436,17 @@ public class BrowserSearch extends HomeF
         final int urlIndex = c.getColumnIndexOrThrow(History.URL);
         int searchCount = 0;
 
         do {
             final String url = c.getString(urlIndex);
 
             if (searchCount == 0) {
                 // Prefetch the first item in the list since it's weighted the highest
-                GeckoAppShell.sendEventToGecko(GeckoEvent.createBroadcastEvent("Session:Prefetch", url.toString()));
+                GeckoAppShell.sendEventToGecko(GeckoEvent.createBroadcastEvent("Session:Prefetch", url));
             }
 
             // Does the completion match against the whole URL? This will match
             // about: pages, as well as user input including "http://...".
             if (url.startsWith(searchTerm)) {
                 return uriSubstringUpToMatchedPath(url, 0,
                         (searchLength > HTTPS_PREFIX_LENGTH) ? searchLength : HTTPS_PREFIX_LENGTH);
             }