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

Unified Diff: sync/engine/model_type_worker_unittest.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_unittest.cc
diff --git a/sync/engine/model_type_worker_unittest.cc b/sync/engine/model_type_worker_unittest.cc
index b0f748408fbea236af14d2990781932630492f92..6b1ef060c00ad11bfe9fde58d9e8a143e821753a 100644
--- a/sync/engine/model_type_worker_unittest.cc
+++ b/sync/engine/model_type_worker_unittest.cc
@@ -4,6 +4,8 @@
#include "sync/engine/model_type_worker.h"
+#include <utility>
+
#include "base/strings/stringprintf.h"
#include "sync/engine/commit_contribution.h"
#include "sync/internal_api/public/base/model_type.h"
@@ -16,7 +18,6 @@
#include "sync/test/engine/mock_nudge_handler.h"
#include "sync/test/engine/single_type_mock_server.h"
#include "sync/test/fake_encryptor.h"
-
#include "testing/gtest/include/gtest/gtest.h"
static const syncer::ModelType kModelType = syncer::PREFERENCES;
@@ -279,8 +280,8 @@ void ModelTypeWorkerTest::InitializeWithState(
}
worker_.reset(new ModelTypeWorker(kModelType, state, initial_pending_updates,
- cryptographer_copy.Pass(),
- &mock_nudge_handler_, proxy.Pass()));
+ std::move(cryptographer_copy),
+ &mock_nudge_handler_, std::move(proxy)));
}
void ModelTypeWorkerTest::NewForeignEncryptionKey() {

Powered by Google App Engine
This is Rietveld 408576698