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

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: Cleaned up 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 | « sync/engine/directory_update_handler_unittest.cc ('k') | sync/engine/model_type_worker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/model_type_worker.cc
diff --git a/sync/engine/model_type_worker.cc b/sync/engine/model_type_worker.cc
index fa60f91d7bdbbd2cc55836707987f6be55dadbbb..e661588c36d2fe2c2d8ded8965da2a3b85165824 100644
--- a/sync/engine/model_type_worker.cc
+++ b/sync/engine/model_type_worker.cc
@@ -40,8 +40,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.
@@ -80,7 +80,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();
« no previous file with comments | « sync/engine/directory_update_handler_unittest.cc ('k') | sync/engine/model_type_worker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698