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

Unified Diff: remoting/host/daemon_process_win.cc

Issue 609923004: Cleanup usage of scoped_ptr<> in remoting for C++11 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/daemon_process_win.cc
diff --git a/remoting/host/daemon_process_win.cc b/remoting/host/daemon_process_win.cc
index b4cb9d19ec0a24693d1ae99a8e11de02ffdf01ec..e848d9e712d776e902cc68dab3d9014eaa94b85c 100644
--- a/remoting/host/daemon_process_win.cc
+++ b/remoting/host/daemon_process_win.cc
@@ -221,8 +221,7 @@ void DaemonProcessWin::LaunchNetworkProcess() {
scoped_ptr<UnprivilegedProcessDelegate> delegate(
new UnprivilegedProcessDelegate(io_task_runner(), target.Pass()));
- network_launcher_.reset(new WorkerProcessLauncher(
- delegate.PassAs<WorkerProcessLauncher::Delegate>(), this));
+ network_launcher_.reset(new WorkerProcessLauncher(delegate.Pass(), this));
}
scoped_ptr<DaemonProcess> DaemonProcess::Create(
@@ -233,7 +232,7 @@ scoped_ptr<DaemonProcess> DaemonProcess::Create(
new DaemonProcessWin(caller_task_runner, io_task_runner,
stopped_callback));
daemon_process->Initialize();
- return daemon_process.PassAs<DaemonProcess>();
+ return daemon_process.Pass();
}
void DaemonProcessWin::DisableAutoStart() {

Powered by Google App Engine
This is Rietveld 408576698