| Index: chrome/browser/dom_ui/slideshow_ui.cc
|
| ===================================================================
|
| --- chrome/browser/dom_ui/slideshow_ui.cc (revision 74394)
|
| +++ chrome/browser/dom_ui/slideshow_ui.cc (working copy)
|
| @@ -148,14 +148,10 @@
|
| }
|
|
|
| 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 @@
|
| 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);
|
| }
|
|
|