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..e8f76295ce560f25b10b0ddf1e60c2827ac29902 100644 |
--- a/chrome/browser/ui/webui/ntp/suggestions_page_handler.cc |
+++ b/chrome/browser/ui/webui/ntp/suggestions_page_handler.cc |
@@ -21,7 +21,7 @@ |
#include "chrome/browser/history/top_sites.h" |
#include "chrome/browser/history/visit_filter.h" |
#include "chrome/browser/profiles/profile.h" |
-#include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
+#include "chrome/browser/ui/webui/chrome_url_data_manager_factory.h" |
#include "chrome/browser/ui/webui/favicon_source.h" |
#include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
#include "chrome/browser/ui/webui/ntp/thumbnail_source.h" |
@@ -89,10 +89,10 @@ 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( |
- new FaviconSource(profile, FaviconSource::FAVICON)); |
+ ChromeURLDataManagerFactory::GetForProfile(profile)-> |
+ AddDataSource(new ThumbnailSource(profile)); |
+ ChromeURLDataManagerFactory::GetForProfile(profile)-> |
+ AddDataSource(new FaviconSource(profile, FaviconSource::FAVICON)); |
// TODO(georgey) change the source of the web-sites to provide our data. |
// Initial commit uses top sites as a data source. |