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

Unified Diff: net/tools/quic/spdy_balsa_utils.cc

Issue 1749303002: Transition to new BalsaUrl/HttpRequestInfo interfaces in gfe/gfe2/quic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@115444705
Patch Set: Revert to Patch Set 1 Created 4 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/spdy_balsa_utils.cc
diff --git a/net/tools/quic/spdy_balsa_utils.cc b/net/tools/quic/spdy_balsa_utils.cc
index d6132f9679c633d03845b90d61fcb26c5d7cceb6..dd24c9935d2476e93d9255408f6d5970da84ef07 100644
--- a/net/tools/quic/spdy_balsa_utils.cc
+++ b/net/tools/quic/spdy_balsa_utils.cc
@@ -227,16 +227,16 @@ SpdyHeaderBlock SpdyBalsaUtils::RequestHeadersToSpdyHeaders(
if (url.empty() || url[0] == '/') {
path = url;
} else {
- GURL request_uri(url);
+ std::unique_ptr<GURL> request_uri(new GURL(url));
if (request_headers.request_method() == "CONNECT") {
path = url;
} else {
- path = request_uri.path();
- if (!request_uri.query().empty()) {
- path = path + "?" + request_uri.query();
+ path = request_uri->path();
+ if (!request_uri->query().empty()) {
+ path = path + "?" + request_uri->query();
}
- host_and_port = request_uri.host();
- scheme = request_uri.scheme();
+ host_and_port = request_uri->host();
+ scheme = request_uri->scheme();
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698