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

Unified Diff: remoting/host/setup/daemon_controller_delegate_mac.mm

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: include <utility> 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_mac.mm
diff --git a/remoting/host/setup/daemon_controller_delegate_mac.mm b/remoting/host/setup/daemon_controller_delegate_mac.mm
index aa4703c0c848028d0d5bb236298ae34e1925f68b..4363a405d7cf2219c9663b6de2255f6aec5ab843 100644
--- a/remoting/host/setup/daemon_controller_delegate_mac.mm
+++ b/remoting/host/setup/daemon_controller_delegate_mac.mm
@@ -61,7 +61,7 @@ scoped_ptr<base::DictionaryValue> DaemonControllerDelegateMac::GetConfig() {
config->SetString(kHostIdConfigPath, value);
if (host_config->GetString(kXmppLoginConfigPath, &value))
config->SetString(kXmppLoginConfigPath, value);
- return config.Pass();
+ return config;
}
void DaemonControllerDelegateMac::SetConfigAndStart(
@@ -249,9 +249,8 @@ void DaemonControllerDelegateMac::PreferencePaneCallback(
}
scoped_refptr<DaemonController> DaemonController::Create() {
- scoped_ptr<DaemonController::Delegate> delegate(
- new DaemonControllerDelegateMac());
- return new DaemonController(delegate.Pass());
+ return new DaemonController(
+ make_scoped_ptr(new DaemonControllerDelegateMac()));
}
} // namespace remoting
« no previous file with comments | « remoting/host/setup/daemon_controller_delegate_linux.cc ('k') | remoting/host/setup/daemon_controller_delegate_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698