Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: remoting/host/setup/daemon_controller_delegate_linux.cc

Issue 873353004: Remove InstallHost from the DaemonController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/setup/daemon_controller_delegate_linux.h" 5 #include "remoting/host/setup/daemon_controller_delegate_linux.h"
6 6
7 #include <unistd.h> 7 #include <unistd.h>
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 std::string value; 189 std::string value;
190 if (config->GetString(kHostIdConfigPath, &value)) { 190 if (config->GetString(kHostIdConfigPath, &value)) {
191 result->SetString(kHostIdConfigPath, value); 191 result->SetString(kHostIdConfigPath, value);
192 } 192 }
193 if (config->GetString(kXmppLoginConfigPath, &value)) { 193 if (config->GetString(kXmppLoginConfigPath, &value)) {
194 result->SetString(kXmppLoginConfigPath, value); 194 result->SetString(kXmppLoginConfigPath, value);
195 } 195 }
196 return result.Pass(); 196 return result.Pass();
197 } 197 }
198 198
199 void DaemonControllerDelegateLinux::InstallHost(
200 const DaemonController::CompletionCallback& done) {
201 NOTREACHED();
202 }
203
204 void DaemonControllerDelegateLinux::SetConfigAndStart( 199 void DaemonControllerDelegateLinux::SetConfigAndStart(
205 scoped_ptr<base::DictionaryValue> config, 200 scoped_ptr<base::DictionaryValue> config,
206 bool consent, 201 bool consent,
207 const DaemonController::CompletionCallback& done) { 202 const DaemonController::CompletionCallback& done) {
208 // Add the user to chrome-remote-desktop group first. 203 // Add the user to chrome-remote-desktop group first.
209 std::vector<std::string> args; 204 std::vector<std::string> args;
210 args.push_back("--add-user"); 205 args.push_back("--add-user");
211 int exit_code; 206 int exit_code;
212 if (!RunHostScriptWithTimeout( 207 if (!RunHostScriptWithTimeout(
213 args, base::TimeDelta::FromSeconds(kSudoTimeoutSeconds), 208 args, base::TimeDelta::FromSeconds(kSudoTimeoutSeconds),
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 return consent; 316 return consent;
322 } 317 }
323 318
324 scoped_refptr<DaemonController> DaemonController::Create() { 319 scoped_refptr<DaemonController> DaemonController::Create() {
325 scoped_ptr<DaemonController::Delegate> delegate( 320 scoped_ptr<DaemonController::Delegate> delegate(
326 new DaemonControllerDelegateLinux()); 321 new DaemonControllerDelegateLinux());
327 return new DaemonController(delegate.Pass()); 322 return new DaemonController(delegate.Pass());
328 } 323 }
329 324
330 } // namespace remoting 325 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698