Bug 1081288: Don't call String.toString. r=rnewman
authorChris Kitching <chriskitching@linux.com>
Fri, 10 Oct 2014 21:02:18 +0100
changeset 209924 1b962a92eff2f6f93b173ed5f664b218355c78a1
parent 209923 efd2ce78cdeb0fe686e3f35bdf97a209e2e9ce61
child 209925 8eb295a430d482bafed4ebdd9c0a4cd2e4a1505a
push id27630
push userryanvm@gmail.com
push dateSat, 11 Oct 2014 20:02:01 +0000
treeherdermozilla-central@b6dc73e98dc2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrnewman
bugs1081288
milestone35.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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);
             }