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

Unified Diff: net/http/http_basic_state.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_auth_handler_digest.cc ('k') | net/http/http_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_basic_state.cc
diff --git a/net/http/http_basic_state.cc b/net/http/http_basic_state.cc
index 2b173b0897b401d99bc890822dba8a161ec17502..060f2fe27fb061269a9aa6a2b3bf54468037f7a3 100644
--- a/net/http/http_basic_state.cc
+++ b/net/http/http_basic_state.cc
@@ -50,8 +50,8 @@ std::string HttpBasicState::GenerateRequestLine() const {
const size_t kSuffixLen = arraysize(kSuffix) - 1;
DCHECK(request_info_);
const GURL& url = request_info_->url;
- const std::string path = using_proxy_ ? HttpUtil::SpecForRequest(url)
- : HttpUtil::PathForRequest(url);
+ const std::string path =
+ using_proxy_ ? HttpUtil::SpecForRequest(url) : url.PathForRequest();
// Don't use StringPrintf for concatenation because it is very inefficient.
std::string request_line;
const size_t expected_size = request_info_->method.size() + 1 + path.size() +
« no previous file with comments | « net/http/http_auth_handler_digest.cc ('k') | net/http/http_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698