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

Unified Diff: components/wifi/network_properties.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/network_properties.h ('k') | components/wifi/wifi_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/wifi/network_properties.cc
diff --git a/components/wifi/network_properties.cc b/components/wifi/network_properties.cc
index 58b09b9d0f874a03c8441d2d66d86f1df450ad16..e8991259e3a3005ca77e84d71568e48f8082c173 100644
--- a/components/wifi/network_properties.cc
+++ b/components/wifi/network_properties.cc
@@ -24,9 +24,9 @@ NetworkProperties::NetworkProperties(const NetworkProperties& other) = default;
NetworkProperties::~NetworkProperties() {
}
-scoped_ptr<base::DictionaryValue> NetworkProperties::ToValue(
+std::unique_ptr<base::DictionaryValue> NetworkProperties::ToValue(
bool network_list) const {
- scoped_ptr<base::DictionaryValue> value(new base::DictionaryValue());
+ std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue());
value->SetString(onc::network_config::kGUID, guid);
value->SetString(onc::network_config::kName, name);
@@ -37,7 +37,7 @@ scoped_ptr<base::DictionaryValue> NetworkProperties::ToValue(
// For now, assume all WiFi services are connectable.
value->SetBoolean(onc::network_config::kConnectable, true);
- scoped_ptr<base::DictionaryValue> wifi(new base::DictionaryValue());
+ std::unique_ptr<base::DictionaryValue> wifi(new base::DictionaryValue());
wifi->SetString(onc::wifi::kSecurity, security);
wifi->SetInteger(onc::wifi::kSignalStrength, signal_strength);
@@ -45,7 +45,7 @@ scoped_ptr<base::DictionaryValue> NetworkProperties::ToValue(
if (!network_list) {
if (frequency != kFrequencyUnknown)
wifi->SetInteger(onc::wifi::kFrequency, frequency);
- scoped_ptr<base::ListValue> frequency_list(new base::ListValue());
+ std::unique_ptr<base::ListValue> frequency_list(new base::ListValue());
for (FrequencySet::const_iterator it = this->frequency_set.begin();
it != this->frequency_set.end();
++it) {
« no previous file with comments | « components/wifi/network_properties.h ('k') | components/wifi/wifi_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698