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

Unified Diff: sync/engine/model_type_worker.cc

Issue 1539843002: Convert Pass()→std::move() in sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: sync/engine/model_type_worker.cc
diff --git a/sync/engine/model_type_worker.cc b/sync/engine/model_type_worker.cc
index 991ee826e025ecba88c188f8e36b8d4ea502a06c..84247daeed1539327fa5800e221c10bfba29f00f 100644
--- a/sync/engine/model_type_worker.cc
+++ b/sync/engine/model_type_worker.cc
@@ -37,8 +37,8 @@ ModelTypeWorker::ModelTypeWorker(
scoped_ptr<ModelTypeProcessor> model_type_processor)
: type_(type),
data_type_state_(initial_state),
- model_type_processor_(model_type_processor.Pass()),
- cryptographer_(cryptographer.Pass()),
+ model_type_processor_(std::move(model_type_processor)),
+ cryptographer_(std::move(cryptographer)),
nudge_handler_(nudge_handler),
weak_ptr_factory_(this) {
// Request an initial sync if it hasn't been completed yet.
@@ -77,7 +77,7 @@ bool ModelTypeWorker::IsEncryptionRequired() const {
void ModelTypeWorker::UpdateCryptographer(
scoped_ptr<Cryptographer> cryptographer) {
DCHECK(cryptographer);
- cryptographer_ = cryptographer.Pass();
+ cryptographer_ = std::move(cryptographer);
// Update our state and that of the proxy.
OnCryptographerUpdated();

Powered by Google App Engine
This is Rietveld 408576698