Index: chrome/browser/ui/webui/options2/browser_options_handler2.cc |
diff --git a/chrome/browser/ui/webui/options2/browser_options_handler2.cc b/chrome/browser/ui/webui/options2/browser_options_handler2.cc |
index 83de954fe9add760909b0cabd7c9db69b882f69e..4d99b0002bd0bd728f08c6bedffbc0a780ba162e 100644 |
--- a/chrome/browser/ui/webui/options2/browser_options_handler2.cc |
+++ b/chrome/browser/ui/webui/options2/browser_options_handler2.cc |
@@ -48,6 +48,7 @@ |
#include "chrome/browser/themes/theme_service.h" |
#include "chrome/browser/themes/theme_service_factory.h" |
#include "chrome/browser/ui/options/options_util.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/web_ui_util.h" |
#include "chrome/common/chrome_constants.h" |
@@ -547,8 +548,8 @@ void BrowserOptionsHandler::InitializeHandler() { |
OnStateChanged(); |
// Create our favicon data source. |
- profile->GetChromeURLDataManager()->AddDataSource( |
- new FaviconSource(profile, FaviconSource::FAVICON)); |
+ ChromeURLDataManagerFactory::GetForProfile(profile)-> |
+ AddDataSource(new FaviconSource(profile, FaviconSource::FAVICON)); |
default_browser_policy_.Init(prefs::kDefaultBrowserSettingEnabled, |
g_browser_process->local_state(), |