Index: chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc |
diff --git a/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc b/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc |
index d521bf309ac77cf948f47deb3bbe7339325f08e9..3968f5908fcb3a6763e696eb9596ff8e265f027b 100644 |
--- a/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc |
+++ b/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc |
@@ -16,7 +16,7 @@ |
#include "chrome/browser/profiles/profile_manager.h" |
#include "chrome/browser/sync/profile_sync_service.h" |
#include "chrome/browser/sync/profile_sync_service_factory.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/chrome_web_ui_data_source.h" |
#include "chrome/browser/ui/webui/options2/core_options_handler2.h" |
#include "chrome/browser/ui/webui/sync_promo/sync_promo_handler.h" |
@@ -112,14 +112,15 @@ SyncPromoUI::SyncPromoUI(content::WebUI* web_ui) : WebUIController(web_ui) { |
// Set up the chrome://theme/ source. |
Profile* profile = Profile::FromWebUI(web_ui); |
ThemeSource* theme = new ThemeSource(profile); |
- profile->GetChromeURLDataManager()->AddDataSource(theme); |
+ ChromeURLDataManagerFactory::GetForProfile(profile)->AddDataSource(theme); |
// Set up the sync promo source. |
SyncPromoUIHTMLSource* html_source = new SyncPromoUIHTMLSource(web_ui); |
html_source->set_json_path(kStringsJsFile); |
html_source->add_resource_path(kSyncPromoJsFile, IDR_SYNC_PROMO_JS); |
html_source->set_default_resource(IDR_SYNC_PROMO_HTML); |
- profile->GetChromeURLDataManager()->AddDataSource(html_source); |
+ ChromeURLDataManagerFactory::GetForProfile(profile)-> |
+ AddDataSource(html_source); |
sync_promo_trial::RecordUserShownPromo(web_ui); |
} |