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

Unified Diff: components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h

Issue 2888163002: [subresource_filter] Decide UNSUPPORTED_SCHEME only if we'd otherwise activate (Closed)
Patch Set: Add comment Created 3 years, 7 months 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: components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h
diff --git a/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h b/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h
index 2f4b58bf819e0a504e372eb7ea4e122dae7d2a78..9aab6bd206865f949cba3c76348fd5be6636b6d8 100644
--- a/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h
+++ b/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h
@@ -102,8 +102,10 @@ class ContentSubresourceFilterDriverFactory
// Returns whether a main-frame navigation to the given |url| satisfies the
// activation |conditions| of a given configuration, except for |priority|.
+ // Pass |scheme_is_http_or_https| to avoid multiple string comparisons.
bool DoesMainFrameURLSatisfyActivationConditions(
const GURL& url,
+ bool scheme_is_http_or_https,
const Configuration::ActivationConditions& conditions,
ActivationList matched_list) const;

Powered by Google App Engine
This is Rietveld 408576698