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

Unified Diff: net/spdy/spdy_http_utils.cc

Issue 1149833014: Remove net::HttpUtil::PathForRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/http/http_util_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_http_utils.cc
diff --git a/net/spdy/spdy_http_utils.cc b/net/spdy/spdy_http_utils.cc
index b3f198343ec5c37e8b052bcb39d8acf40086a677..539747306037133b250d942d9953fa2f33ead12b 100644
--- a/net/spdy/spdy_http_utils.cc
+++ b/net/spdy/spdy_http_utils.cc
@@ -123,7 +123,7 @@ void CreateSpdyHeadersFromHttpRequest(const HttpRequestInfo& info,
(*headers)["url"] = GetHostAndPort(info.url);
} else {
(*headers)["scheme"] = info.url.scheme();
- (*headers)["url"] = direct ? HttpUtil::PathForRequest(info.url)
+ (*headers)["url"] = direct ? info.url.PathForRequest()
: HttpUtil::SpecForRequest(info.url);
}
} else {
@@ -139,7 +139,7 @@ void CreateSpdyHeadersFromHttpRequest(const HttpRequestInfo& info,
(*headers)[":path"] = GetHostAndPort(info.url);
} else {
(*headers)[":scheme"] = info.url.scheme();
- (*headers)[":path"] = HttpUtil::PathForRequest(info.url);
+ (*headers)[":path"] = info.url.PathForRequest();
}
}
}
« no previous file with comments | « net/http/http_util_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698