Bug 1251740 - Rename searchistory to searchHistory r=me
authorAndrzej Hunt <ahunt@mozilla.com>
Fri, 26 Feb 2016 14:04:21 -0800
changeset 322105 b54aa19a214e828357cfbbd98999df32ef0bb6df
parent 322104 8b401c37431d5c774c4a2cf1b60e63f2faa6d82a
child 322106 8871ed7e17bc5022f865206fc34222aed72ed103
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1251740
milestone47.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 1251740 - Rename searchistory to searchHistory r=me MozReview-Commit-ID: BT0EbspbxMK
mobile/android/base/java/org/mozilla/gecko/home/SearchEngineRow.java
--- a/mobile/android/base/java/org/mozilla/gecko/home/SearchEngineRow.java
+++ b/mobile/android/base/java/org/mozilla/gecko/home/SearchEngineRow.java
@@ -390,19 +390,19 @@ class SearchEngineRow extends AnimatedHe
         final int recycledSuggestionCount = mSuggestionView.getChildCount();
         final SharedPreferences prefs = GeckoSharedPrefs.forApp(getContext());
         final boolean savedSearchesEnabled = prefs.getBoolean(GeckoPreferences.PREFS_HISTORY_SAVED_SEARCH, true);
 
         // Remove duplicates of search engine suggestions from saved searches.
         List<String> searchHistorySuggestions = (rawSearchHistorySuggestions != null) ? rawSearchHistorySuggestions : new ArrayList<String>();
 
         // Filter out URLs and long search suggestions
-        Iterator<String> searchistoryIterator = searchHistorySuggestions.iterator();
-        while (searchistoryIterator.hasNext()) {
-            final String currentSearchHistory = searchistoryIterator.next();
+        Iterator<String> searchHistoryIterator = searchHistorySuggestions.iterator();
+        while (searchHistoryIterator.hasNext()) {
+            final String currentSearchHistory = searchHistoryIterator.next();
 
             if (currentSearchHistory.length() > 50 || Pattern.matches("^(https?|ftp|file)://.*", currentSearchHistory)) {
                 searchHistorySuggestions.remove(currentSearchHistory);
             }
         }
 
 
         List<String> searchEngineSuggestions = new ArrayList<String>();