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

Unified Diff: chrome/browser/chromeos/policy/device_network_configuration_updater.cc

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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: chrome/browser/chromeos/policy/device_network_configuration_updater.cc
diff --git a/chrome/browser/chromeos/policy/device_network_configuration_updater.cc b/chrome/browser/chromeos/policy/device_network_configuration_updater.cc
index d2eedd7060b758f1cc3fa7267f62cb10463b664a..0bb63b2ea9758f4603c1604e0e3e0a522743931d 100644
--- a/chrome/browser/chromeos/policy/device_network_configuration_updater.cc
+++ b/chrome/browser/chromeos/policy/device_network_configuration_updater.cc
@@ -22,17 +22,16 @@ namespace policy {
DeviceNetworkConfigurationUpdater::~DeviceNetworkConfigurationUpdater() {}
// static
-scoped_ptr<DeviceNetworkConfigurationUpdater>
+std::unique_ptr<DeviceNetworkConfigurationUpdater>
DeviceNetworkConfigurationUpdater::CreateForDevicePolicy(
PolicyService* policy_service,
chromeos::ManagedNetworkConfigurationHandler* network_config_handler,
chromeos::NetworkDeviceHandler* network_device_handler,
chromeos::CrosSettings* cros_settings) {
- scoped_ptr<DeviceNetworkConfigurationUpdater> updater(
- new DeviceNetworkConfigurationUpdater(policy_service,
- network_config_handler,
- network_device_handler,
- cros_settings));
+ std::unique_ptr<DeviceNetworkConfigurationUpdater> updater(
+ new DeviceNetworkConfigurationUpdater(
+ policy_service, network_config_handler, network_device_handler,
+ cros_settings));
updater->Init();
return updater;
}

Powered by Google App Engine
This is Rietveld 408576698