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

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: '' Created 7 years, 7 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
Index: chrome/browser/search/search.cc
diff --git a/chrome/browser/search/search.cc b/chrome/browser/search/search.cc
index 720c47211cb4990ef8875cf247d1d7e75b99a5d6..b3ac592e9eaaf764cd573fb2aa8bcb6870c69776 100644
--- a/chrome/browser/search/search.cc
+++ b/chrome/browser/search/search.cc
@@ -699,4 +699,18 @@ void ResetInstantExtendedOptInStateGateForTest() {
instant_extended_opt_in_state_gate = false;
}
+bool AreMostVisitedItemsEqual(
+ const std::vector<InstantMostVisitedItem>& new_items,
+ const std::vector<InstantMostVisitedItem>& old_items) {
+ if (new_items.size() != old_items.size())
+ return false;
+
+ for (size_t i = 0; i < old_items.size(); ++i) {
+ if (old_items[i].url != new_items[i].url ||
+ old_items[i].title != new_items[i].title)
+ return false;
+ }
+ return true;
+}
+
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698