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

Unified Diff: components/policy/core/common/cloud/component_cloud_policy_updater.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/component_cloud_policy_updater.h
diff --git a/components/policy/core/common/cloud/component_cloud_policy_updater.h b/components/policy/core/common/cloud/component_cloud_policy_updater.h
index a02eddf2611561165ddd71a6bcad434953dd46db..b8c65d57ef4be5acaa447de55abb2b6a3fc69456 100644
--- a/components/policy/core/common/cloud/component_cloud_policy_updater.h
+++ b/components/policy/core/common/cloud/component_cloud_policy_updater.h
@@ -5,11 +5,11 @@
#ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_COMPONENT_CLOUD_POLICY_UPDATER_H_
#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_COMPONENT_CLOUD_POLICY_UPDATER_H_
+#include <memory>
#include <string>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "components/policy/core/common/cloud/external_policy_data_updater.h"
#include "components/policy/core/common/policy_namespace.h"
#include "components/policy/policy_export.h"
@@ -39,7 +39,7 @@ class POLICY_EXPORT ComponentCloudPolicyUpdater {
// |external_policy_data_fetcher|.
ComponentCloudPolicyUpdater(
scoped_refptr<base::SequencedTaskRunner> task_runner,
- scoped_ptr<ExternalPolicyDataFetcher> external_policy_data_fetcher,
+ std::unique_ptr<ExternalPolicyDataFetcher> external_policy_data_fetcher,
ComponentCloudPolicyStore* store);
~ComponentCloudPolicyUpdater();
@@ -48,7 +48,7 @@ class POLICY_EXPORT ComponentCloudPolicyUpdater {
// validated. If the downloaded data also passes validation then that data
// will be passed to the |store_|.
void UpdateExternalPolicy(
- scoped_ptr<enterprise_management::PolicyFetchResponse> response);
+ std::unique_ptr<enterprise_management::PolicyFetchResponse> response);
// Cancels any pending operations for the given namespace.
void CancelUpdate(const PolicyNamespace& ns);

Powered by Google App Engine
This is Rietveld 408576698