| Index: chrome/browser/dom_ui/remoting_ui.cc
|
| ===================================================================
|
| --- chrome/browser/dom_ui/remoting_ui.cc (revision 74394)
|
| +++ chrome/browser/dom_ui/remoting_ui.cc (working copy)
|
| @@ -7,6 +7,8 @@
|
| #include "base/singleton.h"
|
| #include "chrome/browser/browser_thread.h"
|
| #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
|
| +#include "chrome/browser/profiles/profile.h"
|
| +#include "chrome/browser/tab_contents/tab_contents.h"
|
| #include "chrome/common/url_constants.h"
|
| #include "grit/theme_resources.h"
|
| #include "ui/base/resource/resource_bundle.h"
|
| @@ -64,11 +66,7 @@
|
| RemotingUIHTMLSource* html_source = new RemotingUIHTMLSource();
|
|
|
| // Set up the chrome://remoting source.
|
| - BrowserThread::PostTask(
|
| - BrowserThread::IO, FROM_HERE,
|
| - NewRunnableMethod(ChromeURLDataManager::GetInstance(),
|
| - &ChromeURLDataManager::AddDataSource,
|
| - make_scoped_refptr(html_source)));
|
| + contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source);
|
| }
|
|
|
|
|
|
|