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

Unified Diff: chrome/browser/chromeos/cros/cros_network_functions.cc

Issue 11363203: Get rid of use of CreateStringValue in chromeos/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/cros/cros_network_functions.cc
diff --git a/chrome/browser/chromeos/cros/cros_network_functions.cc b/chrome/browser/chromeos/cros/cros_network_functions.cc
index aff8e27dca2cfb7d19569a67e4210930b4f5388a..06355401e9f81347ed67f5701547da5afd07ff87 100644
--- a/chrome/browser/chromeos/cros/cros_network_functions.cc
+++ b/chrome/browser/chromeos/cros/cros_network_functions.cc
@@ -508,16 +508,16 @@ void CrosRequestHiddenWifiNetworkProperties(
base::DictionaryValue properties;
properties.SetWithoutPathExpansion(
flimflam::kModeProperty,
- base::Value::CreateStringValue(flimflam::kModeManaged));
+ new base::StringValue(flimflam::kModeManaged));
properties.SetWithoutPathExpansion(
flimflam::kTypeProperty,
- base::Value::CreateStringValue(flimflam::kTypeWifi));
+ new base::StringValue(flimflam::kTypeWifi));
properties.SetWithoutPathExpansion(
flimflam::kSSIDProperty,
- base::Value::CreateStringValue(ssid));
+ new base::StringValue(ssid));
properties.SetWithoutPathExpansion(
flimflam::kSecurityProperty,
- base::Value::CreateStringValue(security));
+ new base::StringValue(security));
// shill.Manger.GetService() will apply the property changes in
// |properties| and return a new or existing service to OnGetService().
// OnGetService will then call GetProperties which will then call callback.
@@ -534,20 +534,20 @@ void CrosRequestVirtualNetworkProperties(
base::DictionaryValue properties;
properties.SetWithoutPathExpansion(
flimflam::kTypeProperty,
- base::Value::CreateStringValue(flimflam::kTypeVPN));
+ new base::StringValue(flimflam::kTypeVPN));
properties.SetWithoutPathExpansion(
flimflam::kProviderNameProperty,
- base::Value::CreateStringValue(service_name));
+ new base::StringValue(service_name));
properties.SetWithoutPathExpansion(
flimflam::kProviderHostProperty,
- base::Value::CreateStringValue(server_hostname));
+ new base::StringValue(server_hostname));
properties.SetWithoutPathExpansion(
flimflam::kProviderTypeProperty,
- base::Value::CreateStringValue(provider_type));
+ new base::StringValue(provider_type));
// The actual value of Domain does not matter, so just use service_name.
properties.SetWithoutPathExpansion(
flimflam::kVPNDomainProperty,
- base::Value::CreateStringValue(service_name));
+ new base::StringValue(service_name));
// shill.Manger.GetService() will apply the property changes in
// |properties| and pass a new or existing service to OnGetService().

Powered by Google App Engine
This is Rietveld 408576698