diff options
Diffstat (limited to 'chrome/browser/remoting/setup_flow.cc')
-rw-r--r-- | chrome/browser/remoting/setup_flow.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/chrome/browser/remoting/setup_flow.cc b/chrome/browser/remoting/setup_flow.cc index dc06dd4..add52dc 100644 --- a/chrome/browser/remoting/setup_flow.cc +++ b/chrome/browser/remoting/setup_flow.cc @@ -116,18 +116,16 @@ void SetupFlowDoneStep::DoStart() { SetupFlowContext::SetupFlowContext() { } SetupFlowContext::~SetupFlowContext() { } -SetupFlow::SetupFlow(const std::string& args, Profile* profile, +SetupFlow::SetupFlow(const std::string& args, + Profile* profile, SetupFlowStep* first_step) : web_ui_(NULL), dialog_start_args_(args), profile_(profile), current_step_(first_step) { // TODO(hclam): The data source should be added once. - BrowserThread::PostTask( - BrowserThread::IO, FROM_HERE, - NewRunnableMethod(ChromeURLDataManager::GetInstance(), - &ChromeURLDataManager::AddDataSource, - make_scoped_refptr(new RemotingResourcesSource()))); + profile->GetChromeURLDataManager()->AddDataSource( + new RemotingResourcesSource()); } SetupFlow::~SetupFlow() { } |