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

Unified Diff: net/dns/dns_config_service.cc

Issue 12209080: Cleanup: Remove deprecated base::Value methods from net. Use base::Value too. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 | « net/base/x509_certificate_net_log_param.cc ('k') | net/proxy/proxy_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_config_service.cc
===================================================================
--- net/dns/dns_config_service.cc (revision 181443)
+++ net/dns/dns_config_service.cc (working copy)
@@ -51,16 +51,16 @@
}
base::Value* DnsConfig::ToValue() const {
- DictionaryValue* dict = new DictionaryValue();
+ base::DictionaryValue* dict = new base::DictionaryValue();
- ListValue* list = new ListValue();
+ base::ListValue* list = new base::ListValue();
for (size_t i = 0; i < nameservers.size(); ++i)
- list->Append(Value::CreateStringValue(nameservers[i].ToString()));
+ list->Append(new base::StringValue(nameservers[i].ToString()));
dict->Set("nameservers", list);
- list = new ListValue();
+ list = new base::ListValue();
for (size_t i = 0; i < search.size(); ++i)
- list->Append(Value::CreateStringValue(search[i]));
+ list->Append(new base::StringValue(search[i]));
dict->Set("search", list);
dict->SetBoolean("append_to_multi_label_name", append_to_multi_label_name);
« no previous file with comments | « net/base/x509_certificate_net_log_param.cc ('k') | net/proxy/proxy_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698