diff options
Diffstat (limited to 'chrome/browser/dom_ui/slideshow_ui.cc')
-rw-r--r-- | chrome/browser/dom_ui/slideshow_ui.cc | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/chrome/browser/dom_ui/slideshow_ui.cc b/chrome/browser/dom_ui/slideshow_ui.cc index 78a3965..105fd79 100644 --- a/chrome/browser/dom_ui/slideshow_ui.cc +++ b/chrome/browser/dom_ui/slideshow_ui.cc @@ -148,14 +148,10 @@ SlideshowHandler::~SlideshowHandler() { } WebUIMessageHandler* SlideshowHandler::Attach(DOMUI* dom_ui) { - // Create our favicon data source. - BrowserThread::PostTask( - BrowserThread::IO, FROM_HERE, - NewRunnableMethod( - ChromeURLDataManager::GetInstance(), - &ChromeURLDataManager::AddDataSource, - make_scoped_refptr(new WebUIFavIconSource(dom_ui->GetProfile())))); profile_ = dom_ui->GetProfile(); + // Create our favicon data source. + profile_->GetChromeURLDataManager()->AddDataSource( + new WebUIFavIconSource(profile_)); return WebUIMessageHandler::Attach(dom_ui); } @@ -284,10 +280,5 @@ SlideshowUI::SlideshowUI(TabContents* contents) : DOMUI(contents) { SlideshowUIHTMLSource* html_source = new SlideshowUIHTMLSource(); // Set up the chrome://slideshow/ source. - BrowserThread::PostTask( - BrowserThread::IO, FROM_HERE, - NewRunnableMethod( - ChromeURLDataManager::GetInstance(), - &ChromeURLDataManager::AddDataSource, - make_scoped_refptr(html_source))); + contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source); } |