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

Unified Diff: components/policy/core/common/cloud/cloud_policy_core.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/policy/core/common/cloud/cloud_policy_core.cc
diff --git a/components/policy/core/common/cloud/cloud_policy_core.cc b/components/policy/core/common/cloud/cloud_policy_core.cc
index a2fd68e588f7e0ff9ee656b005a4988a0404338b..fd8e9efe471d29bc26b8022da632566bb3ac69c5 100644
--- a/components/policy/core/common/cloud/cloud_policy_core.cc
+++ b/components/policy/core/common/cloud/cloud_policy_core.cc
@@ -4,6 +4,8 @@
#include "components/policy/core/common/cloud/cloud_policy_core.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/logging.h"
@@ -38,7 +40,7 @@ CloudPolicyCore::~CloudPolicyCore() {}
void CloudPolicyCore::Connect(scoped_ptr<CloudPolicyClient> client) {
CHECK(!client_);
CHECK(client);
- client_ = client.Pass();
+ client_ = std::move(client);
service_.reset(new CloudPolicyService(policy_type_, settings_entity_id_,
client_.get(), store_));
FOR_EACH_OBSERVER(Observer, observers_, OnCoreConnected(this));
@@ -60,7 +62,7 @@ void CloudPolicyCore::StartRemoteCommandsService(
DCHECK(factory);
remote_commands_service_.reset(
- new RemoteCommandsService(factory.Pass(), client_.get()));
+ new RemoteCommandsService(std::move(factory), client_.get()));
// Do an initial remote commands fetch immediately.
remote_commands_service_->FetchRemoteCommands();

Powered by Google App Engine
This is Rietveld 408576698