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

Unified Diff: net/spdy/spdy_session.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/socket/client_socket_pool_base.cc ('k') | net/websockets/websocket_net_log_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session.cc
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc
index a1e8afe0cc4fd7109c225bbde0666f8bfeb4c588..33b01b28c70c660d77f6bf72eef29788e3c96bc4 100644
--- a/net/spdy/spdy_session.cc
+++ b/net/spdy/spdy_session.cc
@@ -50,7 +50,7 @@ Value* NetLogSpdySynParameter::ToValue() const {
ListValue* headers_list = new ListValue();
for (spdy::SpdyHeaderBlock::const_iterator it = headers_->begin();
it != headers_->end(); ++it) {
- headers_list->Append(new StringValue(base::StringPrintf(
+ headers_list->Append(base::StringValue::New(base::StringPrintf(
"%s: %s", it->first.c_str(), it->second.c_str())));
}
dict->SetInteger("flags", flags_);
@@ -71,8 +71,8 @@ class NetLogSpdySessionParameter : public NetLog::EventParameters {
: host_pair_(host_pair) {}
virtual Value* ToValue() const {
DictionaryValue* dict = new DictionaryValue();
- dict->Set("host", new StringValue(host_pair_.first.ToString()));
- dict->Set("proxy", new StringValue(host_pair_.second.ToPacString()));
+ dict->Set("host", base::StringValue::New(host_pair_.first.ToString()));
+ dict->Set("proxy", base::StringValue::New(host_pair_.second.ToPacString()));
return dict;
}
private:
@@ -90,7 +90,7 @@ class NetLogSpdySettingsParameter : public NetLog::EventParameters {
ListValue* settings = new ListValue();
for (spdy::SpdySettings::const_iterator it = settings_.begin();
it != settings_.end(); ++it) {
- settings->Append(new StringValue(
+ settings->Append(base::StringValue::New(
base::StringPrintf("[%u:%u]", it->first.id(), it->second)));
}
dict->Set("settings", settings);
« no previous file with comments | « net/socket/client_socket_pool_base.cc ('k') | net/websockets/websocket_net_log_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698