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

Unified Diff: components/proximity_auth/messenger_impl.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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 | « components/proximity_auth/fake_connection.cc ('k') | components/proximity_auth/proximity_monitor_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proximity_auth/messenger_impl.cc
diff --git a/components/proximity_auth/messenger_impl.cc b/components/proximity_auth/messenger_impl.cc
index d6a1869a36c416f1b5fa086f2db6dc525aecd893..3eeaba33e5345a9e5374df254262048235441f2a 100644
--- a/components/proximity_auth/messenger_impl.cc
+++ b/components/proximity_auth/messenger_impl.cc
@@ -4,6 +4,8 @@
#include "components/proximity_auth/messenger_impl.h"
+#include <utility>
+
#include "base/base64url.h"
#include "base/bind.h"
#include "base/json/json_reader.h"
@@ -67,8 +69,8 @@ std::string GetMessageType(const base::DictionaryValue& message) {
MessengerImpl::MessengerImpl(scoped_ptr<Connection> connection,
scoped_ptr<SecureContext> secure_context)
- : connection_(connection.Pass()),
- secure_context_(secure_context.Pass()),
+ : connection_(std::move(connection)),
+ secure_context_(std::move(secure_context)),
weak_ptr_factory_(this) {
DCHECK(connection_->IsConnected());
connection_->AddObserver(this);
« no previous file with comments | « components/proximity_auth/fake_connection.cc ('k') | components/proximity_auth/proximity_monitor_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698