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

Side by Side Diff: remoting/host/win/wts_session_process_delegate.cc

Issue 290173011: Cleanup: Use base::CommandLine in remoting/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This file implements the Windows service controlling Me2Me host processes 5 // This file implements the Windows service controlling Me2Me host processes
6 // running within user sessions. 6 // running within user sessions.
7 7
8 #include "remoting/host/win/wts_session_process_delegate.h" 8 #include "remoting/host/win/wts_session_process_delegate.h"
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 341
342 event_handler_->OnChannelError(); 342 event_handler_->OnChannelError();
343 } 343 }
344 344
345 void WtsSessionProcessDelegate::Core::DoLaunchProcess() { 345 void WtsSessionProcessDelegate::Core::DoLaunchProcess() {
346 DCHECK(caller_task_runner_->BelongsToCurrentThread()); 346 DCHECK(caller_task_runner_->BelongsToCurrentThread());
347 DCHECK(!channel_); 347 DCHECK(!channel_);
348 DCHECK(!pipe_.IsValid()); 348 DCHECK(!pipe_.IsValid());
349 DCHECK(!worker_process_.IsValid()); 349 DCHECK(!worker_process_.IsValid());
350 350
351 CommandLine command_line(target_command_->argv()); 351 base::CommandLine command_line(target_command_->argv());
352 if (launch_elevated_) { 352 if (launch_elevated_) {
353 // The job object is not ready. Retry starting the host process later. 353 // The job object is not ready. Retry starting the host process later.
354 if (!job_.IsValid()) { 354 if (!job_.IsValid()) {
355 launch_pending_ = true; 355 launch_pending_ = true;
356 return; 356 return;
357 } 357 }
358 358
359 // Construct the helper binary name. 359 // Construct the helper binary name.
360 base::FilePath helper_binary; 360 base::FilePath helper_binary;
361 if (!GetInstalledBinaryPath(kHostBinaryName, &helper_binary)) { 361 if (!GetInstalledBinaryPath(kHostBinaryName, &helper_binary)) {
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 } 557 }
558 558
559 void WtsSessionProcessDelegate::CloseChannel() { 559 void WtsSessionProcessDelegate::CloseChannel() {
560 core_->CloseChannel(); 560 core_->CloseChannel();
561 } 561 }
562 562
563 void WtsSessionProcessDelegate::KillProcess() { 563 void WtsSessionProcessDelegate::KillProcess() {
564 core_->KillProcess(); 564 core_->KillProcess();
565 } 565 }
566 566
567 } // namespace remoting 567 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/win/unprivileged_process_delegate.cc ('k') | remoting/tools/breakpad_tester_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698