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

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 comments 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..ad5916f5659c517f0c6d9c74cc505d7bd5df73d4 100644
--- a/chrome/browser/search/search.cc
+++ b/chrome/browser/search/search.cc
@@ -729,4 +729,18 @@ 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)
palmer 2013/06/05 17:50:54 Nit: Might need curly braces here, too. I could b
kmadhusu 2013/06/05 18:40:39 Done.
+ return false;
+ }
+ return true;
+}
+
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698