summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/options/options_ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/dom_ui/options/options_ui.cc')
-rw-r--r--chrome/browser/dom_ui/options/options_ui.cc18
1 files changed, 4 insertions, 14 deletions
diff --git a/chrome/browser/dom_ui/options/options_ui.cc b/chrome/browser/dom_ui/options/options_ui.cc
index a57ebab..13cb3aa 100644
--- a/chrome/browser/dom_ui/options/options_ui.cc
+++ b/chrome/browser/dom_ui/options/options_ui.cc
@@ -207,25 +207,15 @@ OptionsUI::OptionsUI(TabContents* contents)
new OptionsUIHTMLSource(localized_strings);
// Set up the chrome://settings/ source.
- BrowserThread::PostTask(
- BrowserThread::IO, FROM_HERE,
- NewRunnableMethod(
- ChromeURLDataManager::GetInstance(),
- &ChromeURLDataManager::AddDataSource,
- make_scoped_refptr(html_source)));
+ contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source);
// Set up the chrome://theme/ source.
- WebUIThemeSource* theme = new WebUIThemeSource(GetProfile());
- BrowserThread::PostTask(
- BrowserThread::IO, FROM_HERE,
- NewRunnableMethod(
- ChromeURLDataManager::GetInstance(),
- &ChromeURLDataManager::AddDataSource,
- make_scoped_refptr(theme)));
+ WebUIThemeSource* theme = new WebUIThemeSource(contents->profile());
+ contents->profile()->GetChromeURLDataManager()->AddDataSource(theme);
// Initialize the chrome://about/ source in case the user clicks the credits
// link.
- InitializeAboutDataSource();
+ InitializeAboutDataSource(contents->profile());
}
OptionsUI::~OptionsUI() {