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

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

Issue 11369258: Revert 167808 - 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
« no previous file with comments | « base/values.h ('k') | chrome/browser/chromeos/cros/cros_network_functions_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/cros_network_functions.cc
===================================================================
--- chrome/browser/chromeos/cros/cros_network_functions.cc (revision 167824)
+++ chrome/browser/chromeos/cros/cros_network_functions.cc (working copy)
@@ -537,16 +537,16 @@
base::DictionaryValue properties;
properties.SetWithoutPathExpansion(
flimflam::kModeProperty,
- new base::StringValue(flimflam::kModeManaged));
+ base::Value::CreateStringValue(flimflam::kModeManaged));
properties.SetWithoutPathExpansion(
flimflam::kTypeProperty,
- new base::StringValue(flimflam::kTypeWifi));
+ base::Value::CreateStringValue(flimflam::kTypeWifi));
properties.SetWithoutPathExpansion(
flimflam::kSSIDProperty,
- new base::StringValue(ssid));
+ base::Value::CreateStringValue(ssid));
properties.SetWithoutPathExpansion(
flimflam::kSecurityProperty,
- new base::StringValue(security));
+ base::Value::CreateStringValue(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.
@@ -563,20 +563,20 @@
base::DictionaryValue properties;
properties.SetWithoutPathExpansion(
flimflam::kTypeProperty,
- new base::StringValue(flimflam::kTypeVPN));
+ base::Value::CreateStringValue(flimflam::kTypeVPN));
properties.SetWithoutPathExpansion(
flimflam::kProviderNameProperty,
- new base::StringValue(service_name));
+ base::Value::CreateStringValue(service_name));
properties.SetWithoutPathExpansion(
flimflam::kProviderHostProperty,
- new base::StringValue(server_hostname));
+ base::Value::CreateStringValue(server_hostname));
properties.SetWithoutPathExpansion(
flimflam::kProviderTypeProperty,
- new base::StringValue(provider_type));
+ base::Value::CreateStringValue(provider_type));
// The actual value of Domain does not matter, so just use service_name.
properties.SetWithoutPathExpansion(
flimflam::kVPNDomainProperty,
- new base::StringValue(service_name));
+ base::Value::CreateStringValue(service_name));
// shill.Manger.GetService() will apply the property changes in
// |properties| and pass a new or existing service to OnGetService().
« no previous file with comments | « base/values.h ('k') | chrome/browser/chromeos/cros/cros_network_functions_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698