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

Unified Diff: chrome/browser/download/download_request_limiter.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
Index: chrome/browser/download/download_request_limiter.cc
diff --git a/chrome/browser/download/download_request_limiter.cc b/chrome/browser/download/download_request_limiter.cc
index 89ba925f8037930619efd39ee329a34d1f08449f..85c47e992e93e1f80006e169b56a6133392eb54b 100644
--- a/chrome/browser/download/download_request_limiter.cc
+++ b/chrome/browser/download/download_request_limiter.cc
@@ -89,7 +89,7 @@ void DownloadRequestLimiter::TabDownloadState::DidStartNavigation(
// reset the download state if the user is navigating to a different host
// (or host is empty).
if (!initial_page_host_.empty() &&
- navigation_handle->GetURL().host() == initial_page_host_) {
+ navigation_handle->GetURL().host_piece() == initial_page_host_) {
return;
}
}

Powered by Google App Engine
This is Rietveld 408576698