summaryrefslogtreecommitdiffstats
path: root/sync/util
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2015-12-25 18:40:19 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-26 02:41:30 +0000
commitc80b1b61bf666dfc15b6f93e8c6701cb30dc9354 (patch)
tree4e7d1f3609e7191aa1d6e400002aa02431de18de /sync/util
parentc711a7fdb28a0a6d63b6cc8f7485eee3643d2ff2 (diff)
downloadchromium_src-c80b1b61bf666dfc15b6f93e8c6701cb30dc9354.zip
chromium_src-c80b1b61bf666dfc15b6f93e8c6701cb30dc9354.tar.gz
chromium_src-c80b1b61bf666dfc15b6f93e8c6701cb30dc9354.tar.bz2
Convert Pass()→std::move() in //sync
BUG=557422 Review URL: https://codereview.chromium.org/1539843002 Cr-Commit-Position: refs/heads/master@{#366886}
Diffstat (limited to 'sync/util')
-rw-r--r--sync/util/cryptographer.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/sync/util/cryptographer.cc b/sync/util/cryptographer.cc
index 7f5990d..a301694 100644
--- a/sync/util/cryptographer.cc
+++ b/sync/util/cryptographer.cc
@@ -5,8 +5,8 @@
#include "sync/util/cryptographer.h"
#include <stddef.h>
-
#include <algorithm>
+#include <utility>
#include "base/base64.h"
#include "base/logging.h"
@@ -171,7 +171,7 @@ bool Cryptographer::AddKey(const KeyParams& params) {
NOTREACHED(); // Invalid username or password.
return false;
}
- return AddKeyImpl(nigori.Pass(), true);
+ return AddKeyImpl(std::move(nigori), true);
}
bool Cryptographer::AddNonDefaultKey(const KeyParams& params) {
@@ -184,7 +184,7 @@ bool Cryptographer::AddNonDefaultKey(const KeyParams& params) {
NOTREACHED(); // Invalid username or password.
return false;
}
- return AddKeyImpl(nigori.Pass(), false);
+ return AddKeyImpl(std::move(nigori), false);
}
bool Cryptographer::AddKeyFromBootstrapToken(
@@ -377,7 +377,7 @@ bool Cryptographer::ImportNigoriKey(const std::string& serialized_nigori_key) {
return false;
}
- if (!AddKeyImpl(nigori.Pass(), true))
+ if (!AddKeyImpl(std::move(nigori), true))
return false;
return true;
}