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

Unified Diff: chrome/browser/prerender/prerender_util.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/prerender/prerender_util.cc
diff --git a/chrome/browser/prerender/prerender_util.cc b/chrome/browser/prerender/prerender_util.cc
index efdf28d3d1ebd4c818b4bab7bbd742fb9f808e76..a9f380b8bd9d9a4d649f6a62042f0e92ea755dd9 100644
--- a/chrome/browser/prerender/prerender_util.cc
+++ b/chrome/browser/prerender/prerender_util.cc
@@ -80,7 +80,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));
}
« no previous file with comments | « chrome/browser/policy/policy_helpers.cc ('k') | chrome/browser/renderer_context_menu/context_menu_content_type_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698