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

Unified Diff: components/policy/core/common/cloud/cloud_policy_client_registration_helper.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_client_registration_helper.cc
diff --git a/components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc b/components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc
index a28e4d3764258a34ebf6be9ca520f3ef06e130d1..f4b2699988d8fa785304927ee1eb424a86e0f571 100644
--- a/components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc
+++ b/components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc
@@ -52,7 +52,7 @@ class CloudPolicyClientRegistrationHelper::TokenServiceHelper
const GoogleServiceAuthError& error) override;
StringCallback callback_;
- scoped_ptr<OAuth2TokenService::Request> token_request_;
+ std::unique_ptr<OAuth2TokenService::Request> token_request_;
};
CloudPolicyClientRegistrationHelper::TokenServiceHelper::TokenServiceHelper()
@@ -113,7 +113,7 @@ class CloudPolicyClientRegistrationHelper::LoginTokenHelper
void OnGetTokenFailure(const GoogleServiceAuthError& error) override;
StringCallback callback_;
- scoped_ptr<OAuth2AccessTokenFetcher> oauth2_access_token_fetcher_;
+ std::unique_ptr<OAuth2AccessTokenFetcher> oauth2_access_token_fetcher_;
};
CloudPolicyClientRegistrationHelper::LoginTokenHelper::LoginTokenHelper() {}

Powered by Google App Engine
This is Rietveld 408576698