Index: remoting/host/setup/daemon_controller.cc |
diff --git a/remoting/host/setup/daemon_controller.cc b/remoting/host/setup/daemon_controller.cc |
index 2befd413310c1237abbce8453018eb20a78406c0..dd0b1d99afbd9126e1d68bce566f52bf22640b8d 100644 |
--- a/remoting/host/setup/daemon_controller.cc |
+++ b/remoting/host/setup/daemon_controller.cc |
@@ -47,6 +47,16 @@ void DaemonController::GetConfig(const GetConfigCallback& done) { |
ServiceOrQueueRequest(request); |
} |
+void DaemonController::InstallHost(const CompletionCallback& done) { |
+ DCHECK(caller_task_runner_->BelongsToCurrentThread()); |
+ |
+ DaemonController::CompletionCallback wrapped_done = base::Bind( |
+ &DaemonController::InvokeCompletionCallbackAndScheduleNext, this, done); |
+ base::Closure request = base::Bind( |
+ &DaemonController::DoInstallHost, this, wrapped_done); |
+ ServiceOrQueueRequest(request); |
+} |
+ |
void DaemonController::SetConfigAndStart( |
scoped_ptr<base::DictionaryValue> config, |
bool consent, |
@@ -130,6 +140,12 @@ void DaemonController::DoGetConfig(const GetConfigCallback& done) { |
base::Bind(done, base::Passed(&config))); |
} |
+void DaemonController::DoInstallHost(const CompletionCallback& done) { |
+ DCHECK(delegate_task_runner_->BelongsToCurrentThread()); |
+ |
+ delegate_->InstallHost(done); |
+} |
+ |
void DaemonController::DoSetConfigAndStart( |
scoped_ptr<base::DictionaryValue> config, |
bool consent, |