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

Unified Diff: components/sync_driver/generic_change_processor.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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: components/sync_driver/generic_change_processor.cc
diff --git a/components/sync_driver/generic_change_processor.cc b/components/sync_driver/generic_change_processor.cc
index c64aa2f8bf5bf1e5df2ca1dbde074f24853cea08..2df982022d69edcf38f818ec0f6d81ac73548e6b 100644
--- a/components/sync_driver/generic_change_processor.cc
+++ b/components/sync_driver/generic_change_processor.cc
@@ -5,9 +5,9 @@
#include "components/sync_driver/generic_change_processor.h"
#include <stddef.h>
-
#include <algorithm>
#include <string>
+#include <utility>
#include "base/location.h"
#include "base/strings/string_number_conversions.h"
@@ -118,7 +118,8 @@ GenericChangeProcessor::GenericChangeProcessor(
}
attachment_service_ =
sync_client->GetSyncApiComponentFactory()->CreateAttachmentService(
- attachment_store.Pass(), *user_share, store_birthday, type, this);
+ std::move(attachment_store), *user_share, store_birthday, type,
+ this);
attachment_service_weak_ptr_factory_.reset(
new base::WeakPtrFactory<syncer::AttachmentService>(
attachment_service_.get()));
« no previous file with comments | « components/sync_driver/fake_generic_change_processor.cc ('k') | components/sync_driver/generic_change_processor_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698