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

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

Issue 10196004: Changed ChromeURLDataManager to a ProfileKeyedService and made a Factory for it. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Made ChromeURLDataManager's destructor virtual Created 8 years, 8 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 81f08f30b0685e75a60afd27ab00efd33a82f595..a3346d7eef5cf4775796cbbc873a101321a3dc06 100644
--- a/chrome/browser/ui/webui/ntp/most_visited_handler.cc
+++ b/chrome/browser/ui/webui/ntp/most_visited_handler.cc
@@ -52,9 +52,9 @@ void MostVisitedHandler::RegisterMessages() {
Profile* profile = Profile::FromWebUI(web_ui());
// Set up our sources for thumbnail and favicon data.
ThumbnailSource* thumbnail_src = new ThumbnailSource(profile);
- profile->GetChromeURLDataManager()->AddDataSource(thumbnail_src);
+ ChromeURLDataManager::AddDataSource(profile, thumbnail_src);
- profile->GetChromeURLDataManager()->AddDataSource(
+ ChromeURLDataManager::AddDataSource(profile,
new FaviconSource(profile, FaviconSource::FAVICON));
history::TopSites* ts = profile->GetTopSites();

Powered by Google App Engine
This is Rietveld 408576698