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

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: 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..ce6aedff547dc4b18d2a481da64040e19b1b58de 100644
--- a/sync/internal_api/model_type_store_backend.cc
+++ b/sync/internal_api/model_type_store_backend.cc
@@ -2,9 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "sync/internal_api/public/model_type_store_backend.h"
+#include <utility>
#include "base/files/file_path.h"
+#include "sync/internal_api/public/model_type_store_backend.h"
Nicolas Zea 2015/12/18 23:46:55 keep up top
#include "third_party/leveldatabase/env_chromium.h"
#include "third_party/leveldatabase/src/helpers/memenv/memenv.h"
#include "third_party/leveldatabase/src/include/leveldb/db.h"
@@ -32,7 +33,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,

Powered by Google App Engine
This is Rietveld 408576698