summaryrefslogtreecommitdiffstats
path: root/components/proximity_auth/cryptauth/cryptauth_device_manager.cc
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2015-12-26 14:45:17 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-26 22:46:08 +0000
commit51ace48ad51bae53cef3d63a27fbabeb7d0ecafa (patch)
tree75688ca279a49d844a7f7b08026836c7e352ccfd /components/proximity_auth/cryptauth/cryptauth_device_manager.cc
parent4a9d9829bc889e6a2cc02dbc443d3032e1d2c81f (diff)
downloadchromium_src-51ace48ad51bae53cef3d63a27fbabeb7d0ecafa.zip
chromium_src-51ace48ad51bae53cef3d63a27fbabeb7d0ecafa.tar.gz
chromium_src-51ace48ad51bae53cef3d63a27fbabeb7d0ecafa.tar.bz2
Convert Pass()→std::move() in //components/[n-z]*
BUG=557422 R=avi@chromium.org TBR=jochen@chromium.org Review URL: https://codereview.chromium.org/1548203002 Cr-Commit-Position: refs/heads/master@{#366914}
Diffstat (limited to 'components/proximity_auth/cryptauth/cryptauth_device_manager.cc')
-rw-r--r--components/proximity_auth/cryptauth/cryptauth_device_manager.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/components/proximity_auth/cryptauth/cryptauth_device_manager.cc b/components/proximity_auth/cryptauth/cryptauth_device_manager.cc
index f903597..a931cc8 100644
--- a/components/proximity_auth/cryptauth/cryptauth_device_manager.cc
+++ b/components/proximity_auth/cryptauth/cryptauth_device_manager.cc
@@ -5,6 +5,7 @@
#include "components/proximity_auth/cryptauth/cryptauth_device_manager.h"
#include <stddef.h>
+#include <utility>
#include "base/base64url.h"
#include "base/prefs/pref_registry_simple.h"
@@ -58,7 +59,7 @@ scoped_ptr<base::DictionaryValue> UnlockKeyToDictionary(
dictionary->SetString(kExternalDeviceKeyDeviceName, device_name_b64);
dictionary->SetString(kExternalDeviceKeyBluetoothAddress,
bluetooth_address_b64);
- return dictionary.Pass();
+ return dictionary;
}
// Converts an unlock key dictionary stored in user prefs to an
@@ -104,8 +105,8 @@ CryptAuthDeviceManager::CryptAuthDeviceManager(
scoped_ptr<CryptAuthClientFactory> client_factory,
CryptAuthGCMManager* gcm_manager,
PrefService* pref_service)
- : clock_(clock.Pass()),
- client_factory_(client_factory.Pass()),
+ : clock_(std::move(clock)),
+ client_factory_(std::move(client_factory)),
gcm_manager_(gcm_manager),
pref_service_(pref_service),
weak_ptr_factory_(this) {
@@ -266,7 +267,7 @@ void CryptAuthDeviceManager::OnSyncRequested(
scoped_ptr<SyncScheduler::SyncRequest> sync_request) {
FOR_EACH_OBSERVER(Observer, observers_, OnSyncStarted());
- sync_request_ = sync_request.Pass();
+ sync_request_ = std::move(sync_request);
cryptauth_client_ = client_factory_->CreateInstance();
cryptauth::InvocationReason invocation_reason =