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

Unified Diff: chrome/renderer/searchbox/searchbox.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/renderer/searchbox/searchbox.cc
diff --git a/chrome/renderer/searchbox/searchbox.cc b/chrome/renderer/searchbox/searchbox.cc
index a62cabe3bf6558accad14e76cc863a87f8741e46..6ea57928217d2e83db74fa988cdc089b969a0507 100644
--- a/chrome/renderer/searchbox/searchbox.cc
+++ b/chrome/renderer/searchbox/searchbox.cc
@@ -409,9 +409,8 @@ void SearchBox::SetQuery(const string16& query, bool verbatim) {
}
void SearchBox::OnMostVisitedChanged(
- const std::vector<InstantMostVisitedItemIDPair>& items) {
- most_visited_items_cache_.AddItemsWithRestrictedID(items);
-
+ const std::vector<InstantMostVisitedItem>& items) {
+ most_visited_items_cache_.AddItems(items);
if (render_view()->GetWebView() && render_view()->GetWebView()->mainFrame()) {
extensions_v8::SearchBoxExtension::DispatchMostVisitedChanged(
render_view()->GetWebView()->mainFrame());

Powered by Google App Engine
This is Rietveld 408576698