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

Unified Diff: chrome/browser/search/iframe_source.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/search/iframe_source.cc
diff --git a/chrome/browser/search/iframe_source.cc b/chrome/browser/search/iframe_source.cc
index e9dd3b646de7f515f0182e6581d29348197fa362..925c97ed2c84107cfccc2c2ce7f9cf48c03f2730 100644
--- a/chrome/browser/search/iframe_source.cc
+++ b/chrome/browser/search/iframe_source.cc
@@ -40,9 +40,8 @@ bool IframeSource::ShouldServiceRequest(
const net::URLRequest* request) const {
const std::string& path = request->url().path();
return InstantIOContext::ShouldServiceRequest(request) &&
- request->url().SchemeIs(chrome::kChromeSearchScheme) &&
- request->url().host() == GetSource() &&
- ServesPath(path);
+ request->url().SchemeIs(chrome::kChromeSearchScheme) &&
+ request->url().host_piece() == GetSource() && ServesPath(path);
}
bool IframeSource::ShouldDenyXFrameOptions() const {
« no previous file with comments | « chrome/browser/safe_browsing/browser_feature_extractor.cc ('k') | chrome/browser/search/local_ntp_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698