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

Unified Diff: chrome/browser/search/search.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/search/local_ntp_source.cc ('k') | chrome/browser/sessions/session_common_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/search.cc
diff --git a/chrome/browser/search/search.cc b/chrome/browser/search/search.cc
index 1d975cce78760a70b072c26450e4a829d9f1c523..44f7ccdc0ec554e2877ebe8f5ab5cbd7c24f354a 100644
--- a/chrome/browser/search/search.cc
+++ b/chrome/browser/search/search.cc
@@ -291,8 +291,8 @@ bool IsRenderedInInstantProcess(const content::WebContents* contents,
bool ShouldUseProcessPerSiteForInstantURL(const GURL& url, Profile* profile) {
return ShouldAssignURLToInstantRenderer(url, profile) &&
- (url.host() == chrome::kChromeSearchLocalNtpHost ||
- url.host() == chrome::kChromeSearchRemoteNtpHost);
+ (url.host_piece() == chrome::kChromeSearchLocalNtpHost ||
+ url.host_piece() == chrome::kChromeSearchRemoteNtpHost);
}
bool IsNTPURL(const GURL& url, Profile* profile) {
« no previous file with comments | « chrome/browser/search/local_ntp_source.cc ('k') | chrome/browser/sessions/session_common_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698