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

Unified Diff: components/policy/core/common/cloud/cloud_policy_core.cc

Issue 1902633006: Convert //components/policy from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments and use namespace alias Created 4 years, 8 months 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 956497dda5bfdb46b9307522f767cc2efc4c6d35..c3a5ff06d81d33420b61226a50147a46419d50b7 100644
--- a/components/policy/core/common/cloud/cloud_policy_core.cc
+++ b/components/policy/core/common/cloud/cloud_policy_core.cc
@@ -37,7 +37,7 @@ CloudPolicyCore::CloudPolicyCore(
CloudPolicyCore::~CloudPolicyCore() {}
-void CloudPolicyCore::Connect(scoped_ptr<CloudPolicyClient> client) {
+void CloudPolicyCore::Connect(std::unique_ptr<CloudPolicyClient> client) {
CHECK(!client_);
CHECK(client);
client_ = std::move(client);
@@ -57,7 +57,7 @@ void CloudPolicyCore::Disconnect() {
}
void CloudPolicyCore::StartRemoteCommandsService(
- scoped_ptr<RemoteCommandsFactory> factory) {
+ std::unique_ptr<RemoteCommandsFactory> factory) {
DCHECK(client_);
DCHECK(factory);

Powered by Google App Engine
This is Rietveld 408576698