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

Unified Diff: components/policy/core/common/cloud/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/cloud_policy_store.h
diff --git a/components/policy/core/common/cloud/cloud_policy_store.h b/components/policy/core/common/cloud/cloud_policy_store.h
index 5bdc96708eb4e2d1172ee8d834d986d75e9a9f60..829ae671b95225db24853e5e9fbca364bdcc074e 100644
--- a/components/policy/core/common/cloud/cloud_policy_store.h
+++ b/components/policy/core/common/cloud/cloud_policy_store.h
@@ -7,8 +7,9 @@
#include <stdint.h>
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
#include "components/policy/core/common/cloud/cloud_policy_validator.h"
@@ -138,7 +139,7 @@ class POLICY_EXPORT CloudPolicyStore {
PolicyMap policy_map_;
// Currently effective policy.
- scoped_ptr<enterprise_management::PolicyData> policy_;
+ std::unique_ptr<enterprise_management::PolicyData> policy_;
// Latest status code.
Status status_;

Powered by Google App Engine
This is Rietveld 408576698