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

Unified Diff: remoting/host/setup/daemon_controller_delegate_win.cc

Issue 1549493004: Use std::move() instead of .Pass() in remoting/host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass
Patch Set: Created 5 years 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/setup/daemon_controller_delegate_win.cc
diff --git a/remoting/host/setup/daemon_controller_delegate_win.cc b/remoting/host/setup/daemon_controller_delegate_win.cc
index 58c6bd560ba189b78ad93b99a64cb8af162fd678..5cf00874cf80765620ce6d0d9ea11d2d73791c44 100644
--- a/remoting/host/setup/daemon_controller_delegate_win.cc
+++ b/remoting/host/setup/daemon_controller_delegate_win.cc
@@ -255,7 +255,7 @@ ScopedScHandle OpenService(DWORD access) {
<< "' service";
}
- return service.Pass();
+ return service;
}
void InvokeCompletionCallback(
@@ -467,9 +467,8 @@ void DaemonControllerDelegateWin::SetConfigAndStart(
}
scoped_refptr<DaemonController> DaemonController::Create() {
- scoped_ptr<DaemonController::Delegate> delegate(
- new DaemonControllerDelegateWin());
- return new DaemonController(delegate.Pass());
+ return new DaemonController(
+ make_scoped_ptr(new DaemonControllerDelegateWin()));
}
} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698