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

Unified Diff: components/policy/core/browser/browser_policy_connector_ios.mm

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/browser/browser_policy_connector_ios.mm
diff --git a/components/policy/core/browser/browser_policy_connector_ios.mm b/components/policy/core/browser/browser_policy_connector_ios.mm
index 593d38abf6866d62bc097a5b39f50d8cc5edd7f1..62c3fd3d8b6754bb9ee29af2bedbaaa1719f8564 100644
--- a/components/policy/core/browser/browser_policy_connector_ios.mm
+++ b/components/policy/core/browser/browser_policy_connector_ios.mm
@@ -67,9 +67,9 @@ BrowserPolicyConnectorIOS::BrowserPolicyConnectorIOS(
scoped_refptr<base::SequencedTaskRunner> background_task_runner)
: BrowserPolicyConnector(handler_list_factory),
user_agent_(user_agent) {
- scoped_ptr<AsyncPolicyLoader> loader(
+ std::unique_ptr<AsyncPolicyLoader> loader(
new PolicyLoaderIOS(background_task_runner));
- scoped_ptr<ConfigurationPolicyProvider> provider(
+ std::unique_ptr<ConfigurationPolicyProvider> provider(
new AsyncPolicyProvider(GetSchemaRegistry(), std::move(loader)));
SetPlatformPolicyProvider(std::move(provider));
}
@@ -79,9 +79,9 @@ BrowserPolicyConnectorIOS::~BrowserPolicyConnectorIOS() {}
void BrowserPolicyConnectorIOS::Init(
PrefService* local_state,
scoped_refptr<net::URLRequestContextGetter> request_context) {
- scoped_ptr<DeviceManagementService::Configuration> configuration(
+ std::unique_ptr<DeviceManagementService::Configuration> configuration(
new DeviceManagementServiceConfiguration(user_agent_));
- scoped_ptr<DeviceManagementService> device_management_service(
+ std::unique_ptr<DeviceManagementService> device_management_service(
new DeviceManagementService(std::move(configuration)));
// Delay initialization of the cloud policy requests by 5 seconds.

Powered by Google App Engine
This is Rietveld 408576698