summaryrefslogtreecommitdiffstats
path: root/chrome/browser/prerender/prerender_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/prerender/prerender_util.cc')
-rw-r--r--chrome/browser/prerender/prerender_util.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/prerender/prerender_util.cc b/chrome/browser/prerender/prerender_util.cc
index e708cfdb..503834a 100644
--- a/chrome/browser/prerender/prerender_util.cc
+++ b/chrome/browser/prerender/prerender_util.cc
@@ -72,18 +72,19 @@ bool MaybeGetQueryStringBasedAliasURL(
}
bool IsGoogleDomain(const GURL& url) {
- return base::StartsWith(url.host(), "www.google.",
+ return base::StartsWith(url.host_piece(), "www.google.",
base::CompareCase::SENSITIVE);
}
bool IsGoogleSearchResultURL(const GURL& url) {
if (!IsGoogleDomain(url))
return false;
- return (url.path().empty() ||
- base::StartsWith(url.path(), "/search",
+ return (url.path_piece().empty() ||
+ base::StartsWith(url.path_piece(), "/search",
base::CompareCase::SENSITIVE) ||
(url.path() == "/") ||
- base::StartsWith(url.path(), "/webhp", base::CompareCase::SENSITIVE));
+ base::StartsWith(url.path_piece(), "/webhp",
+ base::CompareCase::SENSITIVE));
}
void ReportPrerenderExternalURL() {