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

Unified Diff: net/http/http_stream_factory_impl_job_controller.cc

Issue 2478573004: Convert GURL::{host,path} to GURL::{host_piece,path_piece} for ==. (Closed)
Patch Set: rebase to #431874 Created 4 years, 1 month 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 | « extensions/browser/extension_error.cc ('k') | net/quic/core/quic_server_id.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_stream_factory_impl_job_controller.cc
diff --git a/net/http/http_stream_factory_impl_job_controller.cc b/net/http/http_stream_factory_impl_job_controller.cc
index daff299b63777f36699ba447e5d64c508e2d6fe5..3fdc07237c5f01f26623697c5a3611e7272fd942 100644
--- a/net/http/http_stream_factory_impl_job_controller.cc
+++ b/net/http/http_stream_factory_impl_job_controller.cc
@@ -852,13 +852,13 @@ HttpStreamFactoryImpl::JobController::GetAlternativeServiceFor(
if (alternative_service.protocol == UNINITIALIZED_ALTERNATE_PROTOCOL) {
type = NO_ALTERNATIVE_SERVICE;
} else if (alternative_service.protocol == QUIC) {
- if (request_info.url.host() == alternative_service.host) {
+ if (request_info.url.host_piece() == alternative_service.host) {
type = QUIC_SAME_DESTINATION;
} else {
type = QUIC_DIFFERENT_DESTINATION;
}
} else {
- if (request_info.url.host() == alternative_service.host) {
+ if (request_info.url.host_piece() == alternative_service.host) {
type = NOT_QUIC_SAME_DESTINATION;
} else {
type = NOT_QUIC_DIFFERENT_DESTINATION;
« no previous file with comments | « extensions/browser/extension_error.cc ('k') | net/quic/core/quic_server_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698