Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7206)

Unified Diff: chrome/browser/ui/search/search_tab_helper.cc

Issue 17521002: Added a check in Searchbox::OnMostVisitedChanged() to prevent duplicate notifications regarding mos… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/search/search_tab_helper.h ('k') | chrome/renderer/searchbox/searchbox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/search_tab_helper.cc
diff --git a/chrome/browser/ui/search/search_tab_helper.cc b/chrome/browser/ui/search/search_tab_helper.cc
index b09e0444aea74eea8174a29c40390096af791944..0174e24010cf2c68d598fde010df6b0d0490c36c 100644
--- a/chrome/browser/ui/search/search_tab_helper.cc
+++ b/chrome/browser/ui/search/search_tab_helper.cc
@@ -92,15 +92,6 @@ void SearchTabHelper::NavigationEntryUpdated() {
UpdateMode(false);
}
-bool SearchTabHelper::UpdateLastKnownMostVisitedItems(
- const std::vector<InstantMostVisitedItem>& items) {
- if (chrome::AreMostVisitedItemsEqual(items, last_known_most_visited_items_))
- return false;
-
- last_known_most_visited_items_ = items;
- return true;
-}
-
void SearchTabHelper::InstantSupportChanged(bool instant_support) {
if (!is_search_enabled_)
return;
@@ -124,7 +115,6 @@ void SearchTabHelper::Observe(
return;
UpdateMode(true);
- last_known_most_visited_items_.clear();
// Already determined the instant support state for this page, do not reset
// the instant support state.
« no previous file with comments | « chrome/browser/ui/search/search_tab_helper.h ('k') | chrome/renderer/searchbox/searchbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698