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

Unified Diff: chrome/browser/ui/webui/chromeos/login/oobe_ui.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: 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/chromeos/login/oobe_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc b/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc
index 0c99d0e27f89adbab66a7e1ab7d767ed3591e542..c75abb77353186f3bde604e3a45325463296b2a7 100644
--- a/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc
@@ -18,7 +18,7 @@
#include "chrome/browser/chromeos/login/wizard_controller.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/about_ui.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/chromeos/login/base_screen_handler.h"
#include "chrome/browser/ui/webui/chromeos/login/core_oobe_handler.h"
#include "chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.h"
@@ -159,21 +159,24 @@ OobeUI::OobeUI(content::WebUI* web_ui)
Profile* profile = Profile::FromWebUI(web_ui);
// Set up the chrome://theme/ source, for Chrome logo.
ThemeSource* theme = new ThemeSource(profile);
- profile->GetChromeURLDataManager()->AddDataSource(theme);
+ ChromeURLDataManagerFactory::GetForProfile(profile)->AddDataSource(theme);
// Set up the chrome://terms/ data source, for EULA content.
AboutUIHTMLSource* about_source =
new AboutUIHTMLSource(chrome::kChromeUITermsHost, profile);
- profile->GetChromeURLDataManager()->AddDataSource(about_source);
+ ChromeURLDataManagerFactory::GetForProfile(profile)->
+ AddDataSource(about_source);
// Set up the chrome://oobe/ source.
OobeUIHTMLSource* html_source = new OobeUIHTMLSource(localized_strings);
- profile->GetChromeURLDataManager()->AddDataSource(html_source);
+ ChromeURLDataManagerFactory::GetForProfile(profile)->
+ AddDataSource(html_source);
// Set up the chrome://userimage/ source.
options2::UserImageSource* user_image_source =
new options2::UserImageSource();
- profile->GetChromeURLDataManager()->AddDataSource(user_image_source);
+ ChromeURLDataManagerFactory::GetForProfile(profile)->
+ AddDataSource(user_image_source);
}
OobeUI::~OobeUI() {

Powered by Google App Engine
This is Rietveld 408576698