Index: chrome/browser/prerender/prerender_util.cc |
diff --git a/chrome/browser/prerender/prerender_util.cc b/chrome/browser/prerender/prerender_util.cc |
index ca254183172eee47ceb320d2e513b14dda77c28e..1c4ab6ff59683aa5221c01e66ceda7f6a6873db6 100644 |
--- a/chrome/browser/prerender/prerender_util.cc |
+++ b/chrome/browser/prerender/prerender_util.cc |
@@ -79,10 +79,6 @@ bool IsGoogleSearchResultURL(const GURL& url) { |
StartsWithASCII(url.path(), std::string("/webhp"), true)); |
} |
-bool IsWebURL(const GURL& url) { |
- return url.SchemeIs("http") || url.SchemeIs("https"); |
-} |
- |
bool IsNoSwapInExperiment(uint8 experiment_id) { |
// Currently, experiments 5 and 6 fall in this category. |
return experiment_id == 5 || experiment_id == 6; |
@@ -100,7 +96,7 @@ void URLRequestResponseStarted(net::URLRequest* request) { |
content::ResourceRequestInfo::ForRequest(request); |
// Gather histogram information about the X-Mod-Pagespeed header. |
if (info->GetResourceType() == ResourceType::MAIN_FRAME && |
- IsWebURL(request->url())) { |
+ request->url().SchemeIsHTTPOrHTTPS()) { |
UMA_HISTOGRAM_SPARSE_SLOWLY(kModPagespeedHistogram, 0); |
if (request->response_headers() && |
request->response_headers()->HasHeader(kModPagespeedHeader)) { |