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

Unified Diff: components/policy/core/common/cloud/user_cloud_policy_store.h

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/user_cloud_policy_store.h
diff --git a/components/policy/core/common/cloud/user_cloud_policy_store.h b/components/policy/core/common/cloud/user_cloud_policy_store.h
index 73c87fe1abe0a047559675529dcfe55176cdd9eb..52739f332076b49e27d70dbe7b75e1989f171f6d 100644
--- a/components/policy/core/common/cloud/user_cloud_policy_store.h
+++ b/components/policy/core/common/cloud/user_cloud_policy_store.h
@@ -37,7 +37,7 @@ class POLICY_EXPORT UserCloudPolicyStore : public UserCloudPolicyStoreBase {
// Factory method for creating a UserCloudPolicyStore for a profile with path
// |profile_path|.
- static scoped_ptr<UserCloudPolicyStore> Create(
+ static std::unique_ptr<UserCloudPolicyStore> Create(
const base::FilePath& profile_path,
const std::string& verification_key,
scoped_refptr<base::SequencedTaskRunner> background_task_runner);
@@ -75,8 +75,8 @@ class POLICY_EXPORT UserCloudPolicyStore : public UserCloudPolicyStoreBase {
// occurs on a background thread (results are sent back to the calling
// thread).
void Validate(
- scoped_ptr<enterprise_management::PolicyFetchResponse> policy,
- scoped_ptr<enterprise_management::PolicySigningKey> key,
+ std::unique_ptr<enterprise_management::PolicyFetchResponse> policy,
+ std::unique_ptr<enterprise_management::PolicySigningKey> key,
const std::string& verification_key,
bool validate_in_background,
const UserCloudPolicyValidator::CompletionCallback& callback);

Powered by Google App Engine
This is Rietveld 408576698