summaryrefslogtreecommitdiffstats
path: root/net/base/net_log.cc
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-31 06:28:20 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-31 06:28:20 +0000
commitccaff65dbdd32a73f588ff5766f29910a8097d2a (patch)
tree31bb657f82eca6d679a0e72a6df5a4b0a37827be /net/base/net_log.cc
parentf706b19cc858ede2ba8be3b36122f84019e9ed35 (diff)
downloadchromium_src-ccaff65dbdd32a73f588ff5766f29910a8097d2a.zip
chromium_src-ccaff65dbdd32a73f588ff5766f29910a8097d2a.tar.gz
chromium_src-ccaff65dbdd32a73f588ff5766f29910a8097d2a.tar.bz2
Convert src/net to use std::string/char* for DictionaryValue keys.
Hopefully I got them all. BUG=23581 TEST=net_unittests Review URL: http://codereview.chromium.org/3013048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54433 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_log.cc')
-rw-r--r--net/base/net_log.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/net/base/net_log.cc b/net/base/net_log.cc
index bd62f91..bc79a30 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;
}