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

Unified Diff: chrome/browser/ui/webui/ntp/most_visited_handler.cc

Issue 23477033: Implementing URL prefix match for history thumbnail cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replacing ASSERT_TRUE() << ... to NOTREACHED() << ... Created 7 years, 3 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/ui/webui/ntp/most_visited_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/most_visited_handler.cc b/chrome/browser/ui/webui/ntp/most_visited_handler.cc
index a8e17a5ad44d580d88dfdfaa811c3c588f482eeb..63f1e22ccaa863a96ffa307da43a35e66ee44121 100644
--- a/chrome/browser/ui/webui/ntp/most_visited_handler.cc
+++ b/chrome/browser/ui/webui/ntp/most_visited_handler.cc
@@ -77,8 +77,11 @@ MostVisitedHandler::~MostVisitedHandler() {
void MostVisitedHandler::RegisterMessages() {
Profile* profile = Profile::FromWebUI(web_ui());
// Set up our sources for thumbnail and favicon data.
- ThumbnailSource* thumbnail_src = new ThumbnailSource(profile);
- content::URLDataSource::Add(profile, thumbnail_src);
+ ThumbnailSource* thumbnail_src_exact = new ThumbnailSource(profile, false);
+ content::URLDataSource::Add(profile, thumbnail_src_exact);
+
+ ThumbnailSource* thumbnail_src_prefix = new ThumbnailSource(profile, true);
+ content::URLDataSource::Add(profile, thumbnail_src_prefix);
#if defined(OS_ANDROID)
// Register chrome://touch-icon as a data source for touch icons or favicons.
« no previous file with comments | « chrome/browser/thumbnails/thumbnail_service_impl.cc ('k') | chrome/browser/ui/webui/ntp/suggestions_page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698