Bug 1251740 - Rename searchistory to searchHistory r=me

MozReview-Commit-ID: BT0EbspbxMK

--HG--
extra : rebase_source : 9796bc0e3f2b42a8497bb71830666779891426c4
This commit is contained in:
Andrzej Hunt 2016-02-26 14:04:21 -08:00
Родитель b3cd983d79
Коммит 0df50bbc44
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -395,9 +395,9 @@ class SearchEngineRow extends AnimatedHeightLayout {
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);