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

Unified Diff: chrome/browser/prerender/prerender_util.cc

Issue 2478573004: Convert GURL::{host,path} to GURL::{host_piece,path_piece} for ==. (Closed)
Patch Set: 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/prerender/prerender_util.cc
diff --git a/chrome/browser/prerender/prerender_util.cc b/chrome/browser/prerender/prerender_util.cc
index 79670f88f5f2edb3b61321f5906b1b9a3b8611e8..0f8593c32a8b8b17e2a621f59b64b83b82b30a07 100644
--- a/chrome/browser/prerender/prerender_util.cc
+++ b/chrome/browser/prerender/prerender_util.cc
@@ -82,7 +82,7 @@ bool IsGoogleSearchResultURL(const GURL& url) {
return (url.path_piece().empty() ||
base::StartsWith(url.path_piece(), "/search",
base::CompareCase::SENSITIVE) ||
- (url.path() == "/") ||
+ (url.path_piece() == "/") ||
base::StartsWith(url.path_piece(), "/webhp",
base::CompareCase::SENSITIVE));
}

Powered by Google App Engine
This is Rietveld 408576698