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

Unified Diff: components/policy/core/common/cloud/policy_header_service.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/policy_header_service.h
diff --git a/components/policy/core/common/cloud/policy_header_service.h b/components/policy/core/common/cloud/policy_header_service.h
index 4e898750c3c6ebd7c30461679ced5fcdee2f1a1c..bb0d8c041fafb3309cc9bb1a8b717a6a705a9cf9 100644
--- a/components/policy/core/common/cloud/policy_header_service.h
+++ b/components/policy/core/common/cloud/policy_header_service.h
@@ -5,12 +5,12 @@
#ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_POLICY_HEADER_SERVICE_H_
#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_POLICY_HEADER_SERVICE_H_
+#include <memory>
#include <string>
#include <vector>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "components/policy/core/common/cloud/cloud_policy_store.h"
#include "components/policy/policy_export.h"
@@ -41,7 +41,7 @@ class POLICY_EXPORT PolicyHeaderService : public CloudPolicyStore::Observer {
// this object and must ensure it outlives ProfileHeaderService (in practice,
// this is called by ProfileIOData, which is shutdown *after* all
// ProfileKeyedServices are shutdown).
- scoped_ptr<PolicyHeaderIOHelper> CreatePolicyHeaderIOHelper(
+ std::unique_ptr<PolicyHeaderIOHelper> CreatePolicyHeaderIOHelper(
scoped_refptr<base::SequencedTaskRunner> task_runner);
// Overridden CloudPolicyStore::Observer methods:

Powered by Google App Engine
This is Rietveld 408576698