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

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: Addressed nits 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
Index: chrome/browser/search/search.cc
diff --git a/chrome/browser/search/search.cc b/chrome/browser/search/search.cc
index 8f0feba44b258bff1a66581ef0684647989edf73..ca8005a2b16eb43b698dda1fc763c1f3ca5826f1 100644
--- a/chrome/browser/search/search.cc
+++ b/chrome/browser/search/search.cc
@@ -729,4 +729,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

Powered by Google App Engine
This is Rietveld 408576698