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

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

Issue 15907006: Rip out browser-side RID caching for most visited items. (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 d8a4fb1c638748e112e110fb2869044f6646934e..50b563437d89faa11b7915bae55d1fb6ca42b301 100644
--- a/chrome/browser/search/search.cc
+++ b/chrome/browser/search/search.cc
@@ -740,4 +740,19 @@ 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