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

Unified Diff: components/wifi_sync/network_state_helper_chromeos.cc

Issue 1917673002: Convert //components/[u-z]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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
« no previous file with comments | « components/wifi/wifi_test.cc ('k') | components/wifi_sync/wifi_config_delegate_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/wifi_sync/network_state_helper_chromeos.cc
diff --git a/components/wifi_sync/network_state_helper_chromeos.cc b/components/wifi_sync/network_state_helper_chromeos.cc
index f7afa73d4c22d512e29b48285c2f76c9c2ecdadb..930598fc07c18238cfd974c1ec4b6b612549c520 100644
--- a/components/wifi_sync/network_state_helper_chromeos.cc
+++ b/components/wifi_sync/network_state_helper_chromeos.cc
@@ -4,6 +4,8 @@
#include "components/wifi_sync/network_state_helper_chromeos.h"
+#include <memory>
+
#include "base/logging.h"
#include "chromeos/network/network_state.h"
#include "chromeos/network/network_state_handler.h"
@@ -33,11 +35,10 @@ WifiCredential::CredentialSet GetWifiCredentialsForShillProfile(
// TODO(quiche): Fill in the actual passphrase via an asynchronous
// call to a chromeos::NetworkConfigurationHandler instance's
// GetProperties method.
- scoped_ptr<WifiCredential> credential =
- WifiCredential::Create(
- network->raw_ssid(),
- WifiSecurityClassFromShillSecurity(network->security_class()),
- "" /* empty passphrase */);
+ std::unique_ptr<WifiCredential> credential = WifiCredential::Create(
+ network->raw_ssid(),
+ WifiSecurityClassFromShillSecurity(network->security_class()),
+ "" /* empty passphrase */);
if (!credential)
LOG(ERROR) << "Failed to create credential";
else
« no previous file with comments | « components/wifi/wifi_test.cc ('k') | components/wifi_sync/wifi_config_delegate_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698