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

Unified Diff: components/policy/core/common/cloud/component_cloud_policy_updater.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/component_cloud_policy_updater.cc
diff --git a/components/policy/core/common/cloud/component_cloud_policy_updater.cc b/components/policy/core/common/cloud/component_cloud_policy_updater.cc
index 50e489c028df598c78246afb0004b6efe485ba8c..cea825dd35d8ab1acd65173ae3b0f2e97a543721 100644
--- a/components/policy/core/common/cloud/component_cloud_policy_updater.cc
+++ b/components/policy/core/common/cloud/component_cloud_policy_updater.cc
@@ -6,6 +6,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -40,9 +41,8 @@ ComponentCloudPolicyUpdater::ComponentCloudPolicyUpdater(
ComponentCloudPolicyStore* store)
: store_(store),
external_policy_data_updater_(task_runner,
- external_policy_data_fetcher.Pass(),
- kMaxParallelPolicyDataFetches) {
-}
+ std::move(external_policy_data_fetcher),
+ kMaxParallelPolicyDataFetches) {}
ComponentCloudPolicyUpdater::~ComponentCloudPolicyUpdater() {
}
@@ -60,7 +60,7 @@ void ComponentCloudPolicyUpdater::UpdateExternalPolicy(
// Validate the policy before doing anything else.
PolicyNamespace ns;
em::ExternalPolicyData data;
- if (!store_->ValidatePolicy(response.Pass(), &ns, &data)) {
+ if (!store_->ValidatePolicy(std::move(response), &ns, &data)) {
LOG(ERROR) << "Failed to validate component policy fetched from DMServer";
return;
}

Powered by Google App Engine
This is Rietveld 408576698