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

Unified Diff: components/proximity_auth/cryptauth/mock_cryptauth_client.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
Index: components/proximity_auth/cryptauth/mock_cryptauth_client.cc
diff --git a/components/proximity_auth/cryptauth/mock_cryptauth_client.cc b/components/proximity_auth/cryptauth/mock_cryptauth_client.cc
index 05f9ac6c33befe86c2521478a02195274507b676..5086dd4c5410fe6bea16246c1cde5caca4109a3c 100644
--- a/components/proximity_auth/cryptauth/mock_cryptauth_client.cc
+++ b/components/proximity_auth/cryptauth/mock_cryptauth_client.cc
@@ -2,9 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/callback.h"
#include "components/proximity_auth/cryptauth/mock_cryptauth_client.h"
+#include <utility>
+
+#include "base/callback.h"
+
namespace proximity_auth {
MockCryptAuthClient::MockCryptAuthClient() {
@@ -29,7 +32,7 @@ scoped_ptr<CryptAuthClient> MockCryptAuthClientFactory::CreateInstance() {
FOR_EACH_OBSERVER(Observer, observer_list_,
OnCryptAuthClientCreated(client.get()));
- return client.Pass();
+ return std::move(client);
}
void MockCryptAuthClientFactory::AddObserver(Observer* observer) {

Powered by Google App Engine
This is Rietveld 408576698