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

Unified Diff: components/password_manager/core/browser/password_syncable_service.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/password_manager/core/browser/password_syncable_service.cc
diff --git a/components/password_manager/core/browser/password_syncable_service.cc b/components/password_manager/core/browser/password_syncable_service.cc
index 887750f7c61a0f8634551160c86dcbb40eb44ec3..f790d3d1c8e9565a5141ae5e7827e3da66209db6 100644
--- a/components/password_manager/core/browser/password_syncable_service.cc
+++ b/components/password_manager/core/browser/password_syncable_service.cc
@@ -4,6 +4,8 @@
#include "components/password_manager/core/browser/password_syncable_service.h"
+#include <utility>
+
#include "base/auto_reset.h"
#include "base/location.h"
#include "base/memory/scoped_vector.h"
@@ -218,8 +220,8 @@ syncer::SyncMergeResult PasswordSyncableService::MergeDataAndStartSyncing(
// Save |sync_processor_| only if the whole procedure succeeded. In case of
// failure Sync shouldn't receive any updates from the PasswordStore.
- sync_error_factory_ = sync_error_factory.Pass();
- sync_processor_ = sync_processor.Pass();
+ sync_error_factory_ = std::move(sync_error_factory);
+ sync_processor_ = std::move(sync_processor);
metrics_util::LogPasswordSyncState(metrics_util::SYNCING_OK);
return merge_result;

Powered by Google App Engine
This is Rietveld 408576698