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

Unified Diff: sync/internal_api/model_type_store_backend.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
Index: sync/internal_api/model_type_store_backend.cc
diff --git a/sync/internal_api/model_type_store_backend.cc b/sync/internal_api/model_type_store_backend.cc
index ebe4118b0480d69143213da85b7844b85519b4ff..d60d51fef03acf94b9a8f2b9471877e9d4ccc6b6 100644
--- a/sync/internal_api/model_type_store_backend.cc
+++ b/sync/internal_api/model_type_store_backend.cc
@@ -4,6 +4,8 @@
#include "sync/internal_api/public/model_type_store_backend.h"
+#include <utility>
+
#include "base/files/file_path.h"
#include "third_party/leveldatabase/env_chromium.h"
#include "third_party/leveldatabase/src/helpers/memenv/memenv.h"
@@ -32,7 +34,7 @@ scoped_ptr<leveldb::Env> ModelTypeStoreBackend::CreateInMemoryEnv() {
}
void ModelTypeStoreBackend::TakeEnvOwnership(scoped_ptr<leveldb::Env> env) {
- env_ = env.Pass();
+ env_ = std::move(env);
}
ModelTypeStore::Result ModelTypeStoreBackend::Init(const std::string& path,
« no previous file with comments | « sync/internal_api/model_type_entity_unittest.cc ('k') | sync/internal_api/model_type_store_backend_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698