summaryrefslogtreecommitdiffstats
path: root/chrome/browser/remoting/setup_flow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/remoting/setup_flow.cc')
-rw-r--r--chrome/browser/remoting/setup_flow.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/remoting/setup_flow.cc b/chrome/browser/remoting/setup_flow.cc
index 918855a..2d5811d 100644
--- a/chrome/browser/remoting/setup_flow.cc
+++ b/chrome/browser/remoting/setup_flow.cc
@@ -115,16 +115,18 @@ 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)
: 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() { }