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

Unified Diff: components/policy/core/common/proxy_policy_provider.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/policy/core/common/proxy_policy_provider.cc
diff --git a/components/policy/core/common/proxy_policy_provider.cc b/components/policy/core/common/proxy_policy_provider.cc
index 7a8919759c20fdbe9d0535a18f4df3e587518483..74f95c9af172fd8df98190b0ca37bf1be4860b7f 100644
--- a/components/policy/core/common/proxy_policy_provider.cc
+++ b/components/policy/core/common/proxy_policy_provider.cc
@@ -4,6 +4,8 @@
#include "components/policy/core/common/proxy_policy_provider.h"
+#include <utility>
+
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "components/policy/core/common/policy_bundle.h"
@@ -48,7 +50,7 @@ void ProxyPolicyProvider::RefreshPolicies() {
// if SetDelegate() was never called before.
scoped_ptr<PolicyBundle> bundle(new PolicyBundle());
bundle->CopyFrom(policies());
- UpdatePolicy(bundle.Pass());
+ UpdatePolicy(std::move(bundle));
}
}
@@ -57,7 +59,7 @@ void ProxyPolicyProvider::OnUpdatePolicy(
DCHECK_EQ(delegate_, provider);
scoped_ptr<PolicyBundle> bundle(new PolicyBundle());
bundle->CopyFrom(delegate_->policies());
- UpdatePolicy(bundle.Pass());
+ UpdatePolicy(std::move(bundle));
}
} // namespace policy
« no previous file with comments | « components/pairing/shark_connection_listener.cc ('k') | components/policy/core/common/proxy_policy_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698