Index: chrome/browser/dom_ui/options/options_ui.cc |
=================================================================== |
--- chrome/browser/dom_ui/options/options_ui.cc (revision 74394) |
+++ chrome/browser/dom_ui/options/options_ui.cc (working copy) |
@@ -207,25 +207,15 @@ |
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() { |