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

Unified Diff: chrome/browser/chrome_content_browser_client.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 | « chrome/browser/banners/app_banner_manager.cc ('k') | chrome/browser/download/download_request_limiter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index ce9507def3a49c33c13c5bdf4f876c55c6833eea..e4f820fdb8a696033e815c19b33113bb381f2a60 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -1228,9 +1228,9 @@ void ChromeContentBrowserClient::OverrideNavigationParams(
// to a shared library.
if (site_instance &&
site_instance->GetSiteURL().SchemeIs(chrome::kChromeSearchScheme) &&
- (site_instance->GetSiteURL().host() ==
+ (site_instance->GetSiteURL().host_piece() ==
chrome::kChromeSearchRemoteNtpHost ||
- site_instance->GetSiteURL().host() ==
+ site_instance->GetSiteURL().host_piece() ==
chrome::kChromeSearchLocalNtpHost) &&
ui::PageTransitionCoreTypeIs(*transition, ui::PAGE_TRANSITION_LINK)) {
// Use AUTO_BOOKMARK for clicks on tiles of the new tab page, consistently
« no previous file with comments | « chrome/browser/banners/app_banner_manager.cc ('k') | chrome/browser/download/download_request_limiter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698