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

Unified Diff: components/wifi_sync/wifi_credential_syncable_service.cc

Issue 1552023002: Convert Pass()→std::move() in //components (CrOS edition) (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: components/wifi_sync/wifi_credential_syncable_service.cc
diff --git a/components/wifi_sync/wifi_credential_syncable_service.cc b/components/wifi_sync/wifi_credential_syncable_service.cc
index c8f65dd5cdc989297065abfa9a5685a806459fbe..7550853bbe14ca0b1457440eb13aa8ded8acfa0a 100644
--- a/components/wifi_sync/wifi_credential_syncable_service.cc
+++ b/components/wifi_sync/wifi_credential_syncable_service.cc
@@ -5,6 +5,7 @@
#include "components/wifi_sync/wifi_credential_syncable_service.h"
#include <stdint.h>
+#include <utility>
#include <vector>
#include "base/logging.h"
@@ -107,7 +108,7 @@ const syncer::ModelType WifiCredentialSyncableService::kModelType =
WifiCredentialSyncableService::WifiCredentialSyncableService(
scoped_ptr<WifiConfigDelegate> network_config_delegate)
- : network_config_delegate_(network_config_delegate.Pass()) {
+ : network_config_delegate_(std::move(network_config_delegate)) {
DCHECK(network_config_delegate_);
}
@@ -123,7 +124,7 @@ syncer::SyncMergeResult WifiCredentialSyncableService::MergeDataAndStartSyncing(
DCHECK(sync_processor.get());
DCHECK_EQ(kModelType, type);
- sync_processor_ = sync_processor.Pass();
+ sync_processor_ = std::move(sync_processor);
// TODO(quiche): Update local WiFi configuration from |initial_sync_data|.
// TODO(quiche): Notify upper layers that sync is ready.
« no previous file with comments | « components/user_manager/user_manager_base.cc ('k') | components/wifi_sync/wifi_credential_syncable_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698