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

Unified Diff: net/base/net_log.cc

Issue 3013048: Convert src/net to use std::string/char* for DictionaryValue keys. (Closed)
Patch Set: fix for windows Created 10 years, 5 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/host_resolver_impl.cc ('k') | net/base/transport_security_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_log.cc
diff --git a/net/base/net_log.cc b/net/base/net_log.cc
index bd62f9128f6a6f101f17d74fb0d125e7787b9415..bc79a300a013bbc68764a3db25b05673b9e927b0 100644
--- a/net/base/net_log.cc
+++ b/net/base/net_log.cc
@@ -3,7 +3,6 @@
// found in the LICENSE file.
#include "net/base/net_log.h"
-#include "base/string_util.h"
#include "base/time.h"
#include "base/values.h"
@@ -88,13 +87,13 @@ NetLogStringParameter::NetLogStringParameter(const char* name,
Value* NetLogIntegerParameter::ToValue() const {
DictionaryValue* dict = new DictionaryValue();
- dict->SetInteger(ASCIIToWide(name_), value_);
+ dict->SetInteger(name_, value_);
return dict;
}
Value* NetLogStringParameter::ToValue() const {
DictionaryValue* dict = new DictionaryValue();
- dict->SetString(ASCIIToWide(name_), value_);
+ dict->SetString(name_, value_);
return dict;
}
@@ -102,10 +101,10 @@ Value* NetLogSourceParameter::ToValue() const {
DictionaryValue* dict = new DictionaryValue();
DictionaryValue* source_dict = new DictionaryValue();
- source_dict->SetInteger(L"type", static_cast<int>(value_.type));
- source_dict->SetInteger(L"id", static_cast<int>(value_.id));
+ source_dict->SetInteger("type", static_cast<int>(value_.type));
+ source_dict->SetInteger("id", static_cast<int>(value_.id));
- dict->Set(ASCIIToWide(name_), source_dict);
+ dict->Set(name_, source_dict);
return dict;
}
« no previous file with comments | « net/base/host_resolver_impl.cc ('k') | net/base/transport_security_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698