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

Unified Diff: chrome/browser/ui/webui/options2/options_ui2.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: Made ChromeURLDataManager's destructor virtual 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
« no previous file with comments | « chrome/browser/ui/webui/options2/browser_options_handler2.cc ('k') | chrome/browser/ui/webui/plugins_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options2/options_ui2.cc
diff --git a/chrome/browser/ui/webui/options2/options_ui2.cc b/chrome/browser/ui/webui/options2/options_ui2.cc
index 30e7b865082c1f54eafd3a29f167ef6da71aa310..f383a63980eff9ca4026a2288fbf8e56aa13d79a 100644
--- a/chrome/browser/ui/webui/options2/options_ui2.cc
+++ b/chrome/browser/ui/webui/options2/options_ui2.cc
@@ -22,6 +22,7 @@
#include "chrome/browser/browser_about_handler.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
#include "chrome/browser/ui/webui/options2/autofill_options_handler2.h"
#include "chrome/browser/ui/webui/options2/browser_options_handler2.h"
#include "chrome/browser/ui/webui/options2/clear_browser_data_handler2.h"
@@ -300,22 +301,22 @@ OptionsUI::OptionsUI(content::WebUI* web_ui)
// Set up the chrome://settings-frame/ source.
Profile* profile = Profile::FromWebUI(web_ui);
- profile->GetChromeURLDataManager()->AddDataSource(html_source);
+ ChromeURLDataManager::AddDataSource(profile, html_source);
// Set up the chrome://theme/ source.
ThemeSource* theme = new ThemeSource(profile);
- profile->GetChromeURLDataManager()->AddDataSource(theme);
+ ChromeURLDataManager::AddDataSource(profile, theme);
#if defined(OS_CHROMEOS)
// Set up the chrome://userimage/ source.
chromeos::options2::UserImageSource* user_image_source =
new chromeos::options2::UserImageSource();
- profile->GetChromeURLDataManager()->AddDataSource(user_image_source);
+ ChromeURLDataManager::AddDataSource(profile, user_image_source);
+
// Set up the chrome://wallpaper/ source.
chromeos::options2::WallpaperThumbnailSource* wallpaper_thumbnail_source =
new chromeos::options2::WallpaperThumbnailSource();
- profile->GetChromeURLDataManager()->
- AddDataSource(wallpaper_thumbnail_source);
+ ChromeURLDataManager::AddDataSource(profile, wallpaper_thumbnail_source);
pointer_device_observer_.reset(
new chromeos::system::PointerDeviceObserver());
« no previous file with comments | « chrome/browser/ui/webui/options2/browser_options_handler2.cc ('k') | chrome/browser/ui/webui/plugins_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698