| 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..114390f5421869af77ee6911b151003880e6caed 100644
|
| --- a/chrome/browser/ui/webui/ntp/most_visited_handler.cc
|
| +++ b/chrome/browser/ui/webui/ntp/most_visited_handler.cc
|
| @@ -22,7 +22,7 @@
|
| #include "chrome/browser/prefs/pref_service.h"
|
| #include "chrome/browser/prefs/scoped_user_pref_update.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"
|
| @@ -52,10 +52,11 @@ 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);
|
| + ChromeURLDataManagerFactory::GetForProfile(profile)->
|
| + AddDataSource(thumbnail_src);
|
|
|
| - profile->GetChromeURLDataManager()->AddDataSource(
|
| - new FaviconSource(profile, FaviconSource::FAVICON));
|
| + ChromeURLDataManagerFactory::GetForProfile(profile)->
|
| + AddDataSource(new FaviconSource(profile, FaviconSource::FAVICON));
|
|
|
| history::TopSites* ts = profile->GetTopSites();
|
| if (ts) {
|
|
|