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

Unified Diff: components/policy/core/common/cloud/cloud_policy_validator.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_validator.cc
diff --git a/components/policy/core/common/cloud/cloud_policy_validator.cc b/components/policy/core/common/cloud/cloud_policy_validator.cc
index 22e16cff132675b5a7bdae89ad2566e77d81ee5e..be2bd6f757d4868c5cc1c0b5ce38f15effbdc899 100644
--- a/components/policy/core/common/cloud/cloud_policy_validator.cc
+++ b/components/policy/core/common/cloud/cloud_policy_validator.cc
@@ -5,6 +5,7 @@
#include "components/policy/core/common/cloud/cloud_policy_validator.h"
#include <stddef.h>
+#include <utility>
#include "base/bind_helpers.h"
#include "base/location.h"
@@ -171,7 +172,7 @@ CloudPolicyValidatorBase::CloudPolicyValidatorBase(
google::protobuf::MessageLite* payload,
scoped_refptr<base::SequencedTaskRunner> background_task_runner)
: status_(VALIDATION_OK),
- policy_(policy_response.Pass()),
+ policy_(std::move(policy_response)),
payload_(payload),
validation_flags_(0),
timestamp_not_before_(0),

Powered by Google App Engine
This is Rietveld 408576698