summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/options
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-01 16:04:12 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-01 16:04:12 +0000
commite7013f4c21d2f8c9da89c705760dae2498f38edd (patch)
tree964a7df5cb8401e907be83e0696ff79cd0aed87b /chrome/browser/ui/webui/options
parent3abbed000fefd2f846da29a5c14683bf32ff1867 (diff)
downloadchromium_src-e7013f4c21d2f8c9da89c705760dae2498f38edd.zip
chromium_src-e7013f4c21d2f8c9da89c705760dae2498f38edd.tar.gz
chromium_src-e7013f4c21d2f8c9da89c705760dae2498f38edd.tar.bz2
Removal of Profile from content part 5.
BUG=76788 TEST=no change visible Review URL: http://codereview.chromium.org/7523054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94907 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/webui/options')
-rw-r--r--chrome/browser/ui/webui/options/options_ui.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/ui/webui/options/options_ui.cc b/chrome/browser/ui/webui/options/options_ui.cc
index de75ec6..ede0fcd 100644
--- a/chrome/browser/ui/webui/options/options_ui.cc
+++ b/chrome/browser/ui/webui/options/options_ui.cc
@@ -260,18 +260,18 @@ OptionsUI::OptionsUI(TabContents* contents)
new OptionsUIHTMLSource(localized_strings);
// Set up the chrome://settings/ source.
- contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source);
+ Profile* profile = Profile::FromBrowserContext(contents->browser_context());
+ profile->GetChromeURLDataManager()->AddDataSource(html_source);
// Set up the chrome://theme/ source.
- ThemeSource* theme = new ThemeSource(contents->profile());
- contents->profile()->GetChromeURLDataManager()->AddDataSource(theme);
+ ThemeSource* theme = new ThemeSource(profile);
+ profile->GetChromeURLDataManager()->AddDataSource(theme);
#if defined(OS_CHROMEOS)
// Set up the chrome://userimage/ source.
chromeos::UserImageSource* user_image_source =
new chromeos::UserImageSource();
- contents->profile()->GetChromeURLDataManager()->AddDataSource(
- user_image_source);
+ profile->GetChromeURLDataManager()->AddDataSource(user_image_source);
#endif
}