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

Unified Diff: chrome/browser/search/search.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/search/search.h ('k') | chrome/browser/ui/search/instant_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/search.cc
diff --git a/chrome/browser/search/search.cc b/chrome/browser/search/search.cc
index 5bca40a5ee27e9cdd30dd218b5f2f0532d721f99..9863d572b7cc21fdc08c3b408f83dfecd6d07570 100644
--- a/chrome/browser/search/search.cc
+++ b/chrome/browser/search/search.cc
@@ -751,19 +751,4 @@ void ResetInstantExtendedOptInStateGateForTest() {
instant_extended_opt_in_state_gate = false;
}
-bool AreMostVisitedItemsEqual(
- const std::vector<InstantMostVisitedItem>& items_a,
- const std::vector<InstantMostVisitedItem>& items_b) {
- if (items_a.size() != items_b.size())
- return false;
-
- for (size_t i = 0; i < items_b.size(); ++i) {
- if (items_b[i].url != items_a[i].url ||
- items_b[i].title != items_a[i].title) {
- return false;
- }
- }
- return true;
-}
-
} // namespace chrome
« no previous file with comments | « chrome/browser/search/search.h ('k') | chrome/browser/ui/search/instant_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698