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

Unified Diff: remoting/host/setup/daemon_controller_delegate_linux.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: 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
« no previous file with comments | « remoting/host/setup/daemon_controller.cc ('k') | remoting/host/setup/daemon_controller_delegate_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/setup/daemon_controller_delegate_linux.cc
diff --git a/remoting/host/setup/daemon_controller_delegate_linux.cc b/remoting/host/setup/daemon_controller_delegate_linux.cc
index 57de922094cd7fed9861bdfc793b5a2c408e7c9b..2e4013258c1ad99ba38191fc3db68be2ef28a38b 100644
--- a/remoting/host/setup/daemon_controller_delegate_linux.cc
+++ b/remoting/host/setup/daemon_controller_delegate_linux.cc
@@ -139,7 +139,7 @@ scoped_ptr<base::DictionaryValue> DaemonControllerDelegateLinux::GetConfig() {
if (config->GetString(kXmppLoginConfigPath, &value)) {
result->SetString(kXmppLoginConfigPath, value);
}
- return result.Pass();
+ return result;
}
void DaemonControllerDelegateLinux::SetConfigAndStart(
@@ -229,9 +229,8 @@ DaemonControllerDelegateLinux::GetUsageStatsConsent() {
}
scoped_refptr<DaemonController> DaemonController::Create() {
- scoped_ptr<DaemonController::Delegate> delegate(
- new DaemonControllerDelegateLinux());
- return new DaemonController(delegate.Pass());
+ return new DaemonController(
+ make_scoped_ptr(new DaemonControllerDelegateLinux()));
}
} // namespace remoting
« no previous file with comments | « remoting/host/setup/daemon_controller.cc ('k') | remoting/host/setup/daemon_controller_delegate_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698