diff options
author | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-18 21:47:17 +0000 |
---|---|---|
committer | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-18 21:47:17 +0000 |
commit | ed453c0a1d45f244d9b675c59bad604029cb1281 (patch) | |
tree | 69788c4d6f709254cd5e061f7f84c81d30d9e6fe /chrome/browser/remoting/remoting_setup_flow.cc | |
parent | 3eb923c081d9e23654f6f618b0ba553fb7f2bcfa (diff) | |
download | chromium_src-ed453c0a1d45f244d9b675c59bad604029cb1281.zip chromium_src-ed453c0a1d45f244d9b675c59bad604029cb1281.tar.gz chromium_src-ed453c0a1d45f244d9b675c59bad604029cb1281.tar.bz2 |
Fixed ServiceProcessControl::Launch to remember the Task supplied to it in a list so that multiple successive Launch calls will work. Also added separate success and failure tasks to Launch. Modified the browser test to test this new functionality. Modified callers.
BUG=58802
TEST=Browser tests, Cloud Print Proxy UI.
Review URL: http://codereview.chromium.org/3851001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62978 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/remoting/remoting_setup_flow.cc')
-rw-r--r-- | chrome/browser/remoting/remoting_setup_flow.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/remoting/remoting_setup_flow.cc b/chrome/browser/remoting/remoting_setup_flow.cc index 67a9050..f5b59379 100644 --- a/chrome/browser/remoting/remoting_setup_flow.cc +++ b/chrome/browser/remoting/remoting_setup_flow.cc @@ -214,9 +214,10 @@ void RemotingSetupFlow::OnIssueAuthTokenSuccess(const std::string& service, // TODO(hclam): This call only works on Windows. I need to make it work // on other platforms. service_process_helper_ = new RemotingServiceProcessHelper(this); - process_control_->Launch( + Task* process_launched_task = NewRunnableMethod(service_process_helper_.get(), - &RemotingServiceProcessHelper::OnProcessLaunched)); + &RemotingServiceProcessHelper::OnProcessLaunched); + process_control_->Launch(process_launched_task, process_launched_task); #else ShowSetupDone(); #endif |