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

Unified Diff: components/sync_wifi/wifi_credential.cc

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 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/sync_wifi/wifi_credential.cc
diff --git a/components/sync_wifi/wifi_credential.cc b/components/sync_wifi/wifi_credential.cc
index a6a0e389ec0a84dcdd92e8ae04935de2655dddeb..0337ee8188f30e420dbe0a5118c3a929e86feeed 100644
--- a/components/sync_wifi/wifi_credential.cc
+++ b/components/sync_wifi/wifi_credential.cc
@@ -55,17 +55,17 @@ std::unique_ptr<base::DictionaryValue> WifiCredential::ToOncProperties() const {
std::unique_ptr<base::DictionaryValue> onc_properties(
new base::DictionaryValue());
onc_properties->Set(onc::toplevel_config::kType,
- new base::StringValue(onc::network_type::kWiFi));
+ new base::Value(onc::network_type::kWiFi));
// TODO(quiche): Switch to the HexSSID property, once ONC fully supports it.
// crbug.com/432546.
onc_properties->Set(onc::network_config::WifiProperty(onc::wifi::kSSID),
- new base::StringValue(ssid_utf8));
+ new base::Value(ssid_utf8));
onc_properties->Set(onc::network_config::WifiProperty(onc::wifi::kSecurity),
- new base::StringValue(onc_security));
+ new base::Value(onc_security));
if (WifiSecurityClassSupportsPassphrases(security_class())) {
onc_properties->Set(
onc::network_config::WifiProperty(onc::wifi::kPassphrase),
- new base::StringValue(passphrase()));
+ new base::Value(passphrase()));
}
return onc_properties;
}
« no previous file with comments | « components/sync_preferences/pref_service_syncable_unittest.cc ('k') | components/translate/core/browser/translate_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698