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

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

Issue 819203002: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 12 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
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | remoting/host/win/wts_session_process_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 // 5 //
6 // This file implements the Windows service controlling Me2Me host processes 6 // This file implements the Windows service controlling Me2Me host processes
7 // running within user sessions. 7 // running within user sessions.
8 8
9 #include "remoting/host/win/unprivileged_process_delegate.h" 9 #include "remoting/host/win/unprivileged_process_delegate.h"
10 10
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 } 207 }
208 208
209 handles.Swap(*handles_out); 209 handles.Swap(*handles_out);
210 return true; 210 return true;
211 } 211 }
212 212
213 } // namespace 213 } // namespace
214 214
215 UnprivilegedProcessDelegate::UnprivilegedProcessDelegate( 215 UnprivilegedProcessDelegate::UnprivilegedProcessDelegate(
216 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, 216 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
217 scoped_ptr<CommandLine> target_command) 217 scoped_ptr<base::CommandLine> target_command)
218 : io_task_runner_(io_task_runner), 218 : io_task_runner_(io_task_runner),
219 event_handler_(NULL), 219 event_handler_(NULL),
220 target_command_(target_command.Pass()) { 220 target_command_(target_command.Pass()) {
221 } 221 }
222 222
223 UnprivilegedProcessDelegate::~UnprivilegedProcessDelegate() { 223 UnprivilegedProcessDelegate::~UnprivilegedProcessDelegate() {
224 DCHECK(CalledOnValidThread()); 224 DCHECK(CalledOnValidThread());
225 DCHECK(!channel_); 225 DCHECK(!channel_);
226 DCHECK(!worker_process_.IsValid()); 226 DCHECK(!worker_process_.IsValid());
227 } 227 }
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 PLOG(ERROR) << "Failed to duplicate a handle"; 411 PLOG(ERROR) << "Failed to duplicate a handle";
412 ReportFatalError(); 412 ReportFatalError();
413 return; 413 return;
414 } 414 }
415 ScopedHandle limited_handle(temp_handle); 415 ScopedHandle limited_handle(temp_handle);
416 416
417 event_handler_->OnProcessLaunched(limited_handle.Pass()); 417 event_handler_->OnProcessLaunched(limited_handle.Pass());
418 } 418 }
419 419
420 } // namespace remoting 420 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | remoting/host/win/wts_session_process_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698