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

Unified Diff: sync/api/mock_model_type_store.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/api/fake_syncable_service.cc ('k') | sync/engine/directory_update_handler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/mock_model_type_store.cc
diff --git a/sync/api/mock_model_type_store.cc b/sync/api/mock_model_type_store.cc
index 2887728b3fa1903b49d37e1aa1df79ee63a74eeb..87d3fe15e4c898f9ba59e6dcc0f3c436a53a7076 100644
--- a/sync/api/mock_model_type_store.cc
+++ b/sync/api/mock_model_type_store.cc
@@ -4,6 +4,8 @@
#include "sync/api/mock_model_type_store.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/location.h"
#include "base/logging.h"
@@ -57,7 +59,7 @@ MockModelTypeStore::CreateWriteBatch() {
void MockModelTypeStore::CommitWriteBatch(scoped_ptr<WriteBatch> write_batch,
const CallbackWithResult& callback) {
if (!commit_write_batch_handler_.is_null()) {
- commit_write_batch_handler_.Run(write_batch.Pass(), callback);
+ commit_write_batch_handler_.Run(std::move(write_batch), callback);
} else {
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::Bind(callback, Result::SUCCESS));
« no previous file with comments | « sync/api/fake_syncable_service.cc ('k') | sync/engine/directory_update_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698