| Index: chrome/browser/remoting/setup_flow.cc
|
| ===================================================================
|
| --- chrome/browser/remoting/setup_flow.cc (revision 74293)
|
| +++ chrome/browser/remoting/setup_flow.cc (working copy)
|
| @@ -115,16 +115,18 @@
|
| SetupFlowContext::SetupFlowContext() { }
|
| SetupFlowContext::~SetupFlowContext() { }
|
|
|
| -SetupFlow::SetupFlow(const std::string& args,
|
| - Profile* profile,
|
| +SetupFlow::SetupFlow(const std::string& args, Profile* profile,
|
| SetupFlowStep* first_step)
|
| : dom_ui_(NULL),
|
| dialog_start_args_(args),
|
| profile_(profile),
|
| current_step_(first_step) {
|
| // TODO(hclam): The data source should be added once.
|
| - profile->GetChromeURLDataManager()->AddDataSource(
|
| - new RemotingResourcesSource());
|
| + BrowserThread::PostTask(
|
| + BrowserThread::IO, FROM_HERE,
|
| + NewRunnableMethod(ChromeURLDataManager::GetInstance(),
|
| + &ChromeURLDataManager::AddDataSource,
|
| + make_scoped_refptr(new RemotingResourcesSource())));
|
| }
|
|
|
| SetupFlow::~SetupFlow() { }
|
|
|