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

Unified Diff: remoting/host/pairing_registry_delegate.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/oauth_token_getter_impl.cc ('k') | remoting/host/pairing_registry_delegate_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/pairing_registry_delegate.cc
diff --git a/remoting/host/pairing_registry_delegate.cc b/remoting/host/pairing_registry_delegate.cc
index c7e49a0ddbd4d16badb54828690f228c3e98d22d..a9596b0b02fffdcd0a82c5695a5c2dab05651040 100644
--- a/remoting/host/pairing_registry_delegate.cc
+++ b/remoting/host/pairing_registry_delegate.cc
@@ -4,6 +4,8 @@
#include "remoting/host/pairing_registry_delegate.h"
+#include <utility>
+
#include "base/single_thread_task_runner.h"
namespace remoting {
@@ -16,7 +18,7 @@ scoped_refptr<PairingRegistry> CreatePairingRegistry(
scoped_ptr<PairingRegistry::Delegate> delegate(
CreatePairingRegistryDelegate());
if (delegate) {
- pairing_registry = new PairingRegistry(task_runner, delegate.Pass());
+ pairing_registry = new PairingRegistry(task_runner, std::move(delegate));
}
return pairing_registry;
}
« no previous file with comments | « remoting/host/oauth_token_getter_impl.cc ('k') | remoting/host/pairing_registry_delegate_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698