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(); |