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

Unified Diff: net/http/http_net_log_params.cc

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo Created 9 years, 4 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/dns/dns_transaction.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/http/http_net_log_params.cc
diff --git a/net/http/http_net_log_params.cc b/net/http/http_net_log_params.cc
index 989d30d4d74efc09bf563cdc4bdf05757741aa37..b436287adbc90826f793eb1ed5ba465c520b969a 100644
--- a/net/http/http_net_log_params.cc
+++ b/net/http/http_net_log_params.cc
@@ -24,7 +24,7 @@ Value* NetLogHttpRequestParameter::ToValue() const {
HttpRequestHeaders::Iterator iterator(headers_);
while (iterator.GetNext()) {
headers->Append(
- new StringValue(base::StringPrintf("%s: %s",
+ base::StringValue::New(base::StringPrintf("%s: %s",
iterator.name().c_str(),
iterator.value().c_str())));
}
@@ -41,13 +41,13 @@ NetLogHttpResponseParameter::NetLogHttpResponseParameter(
Value* NetLogHttpResponseParameter::ToValue() const {
DictionaryValue* dict = new DictionaryValue();
ListValue* headers = new ListValue();
- headers->Append(new StringValue(headers_->GetStatusLine()));
+ headers->Append(base::StringValue::New(headers_->GetStatusLine()));
void* iterator = NULL;
std::string name;
std::string value;
while (headers_->EnumerateHeaderLines(&iterator, &name, &value)) {
headers->Append(
- new StringValue(base::StringPrintf("%s: %s", name.c_str(),
+ base::StringValue::New(base::StringPrintf("%s: %s", name.c_str(),
value.c_str())));
}
dict->Set("headers", headers);
« no previous file with comments | « net/dns/dns_transaction.cc ('k') | net/proxy/proxy_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698