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

Unified Diff: sync/api/fake_syncable_service.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/attachments/attachment_store.cc ('k') | sync/api/mock_model_type_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/fake_syncable_service.cc
diff --git a/sync/api/fake_syncable_service.cc b/sync/api/fake_syncable_service.cc
index 342dd2db008d2ecafa6c03fffa6a0596567dcdf5..3f103cbeefb17eeaafe1afcb2e1148515e8e37f1 100644
--- a/sync/api/fake_syncable_service.cc
+++ b/sync/api/fake_syncable_service.cc
@@ -4,6 +4,8 @@
#include "sync/api/fake_syncable_service.h"
+#include <utility>
+
#include "base/location.h"
#include "sync/api/sync_error_factory.h"
@@ -27,7 +29,7 @@ void FakeSyncableService::set_process_sync_changes_error(
void FakeSyncableService::set_attachment_store(
scoped_ptr<AttachmentStore> attachment_store) {
- attachment_store_ = attachment_store.Pass();
+ attachment_store_ = std::move(attachment_store);
}
const AttachmentService* FakeSyncableService::attachment_service() const {
@@ -45,7 +47,7 @@ SyncMergeResult FakeSyncableService::MergeDataAndStartSyncing(
scoped_ptr<SyncChangeProcessor> sync_processor,
scoped_ptr<SyncErrorFactory> sync_error_factory) {
SyncMergeResult merge_result(type);
- sync_processor_ = sync_processor.Pass();
+ sync_processor_ = std::move(sync_processor);
type_ = type;
if (!merge_data_and_start_syncing_error_.IsSet()) {
syncing_ = true;
@@ -78,7 +80,7 @@ FakeSyncableService::GetAttachmentStoreForSync() {
void FakeSyncableService::SetAttachmentService(
scoped_ptr<AttachmentService> attachment_service) {
- attachment_service_ = attachment_service.Pass();
+ attachment_service_ = std::move(attachment_service);
}
} // namespace syncer
« no previous file with comments | « sync/api/attachments/attachment_store.cc ('k') | sync/api/mock_model_type_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698