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

Unified Diff: chrome/browser/ui/webui/ntp/suggestions_page_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: Added static ChromeURLDataManager::AddSource() 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/suggestions_page_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/suggestions_page_handler.cc b/chrome/browser/ui/webui/ntp/suggestions_page_handler.cc
index ee86fd525eaeab4960362048f160166177cc6031..77a85d88e9b891efb2c3920031b92634e650de4a 100644
--- a/chrome/browser/ui/webui/ntp/suggestions_page_handler.cc
+++ b/chrome/browser/ui/webui/ntp/suggestions_page_handler.cc
@@ -89,9 +89,8 @@ SuggestionsHandler::~SuggestionsHandler() {
void SuggestionsHandler::RegisterMessages() {
Profile* profile = Profile::FromWebUI(web_ui());
// Set up our sources for thumbnail and favicon data.
- profile->GetChromeURLDataManager()->AddDataSource(
- new ThumbnailSource(profile));
- profile->GetChromeURLDataManager()->AddDataSource(
+ ChromeURLDataManager::AddDataSource(profile, new ThumbnailSource(profile));
+ ChromeURLDataManager::AddDataSource(profile,
new FaviconSource(profile, FaviconSource::FAVICON));
// TODO(georgey) change the source of the web-sites to provide our data.

Powered by Google App Engine
This is Rietveld 408576698