| Index: components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc
|
| diff --git a/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc b/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc
|
| index b04c52ab815bfcf9918f5a55ac6b4a029cd9416f..2580e2cab58415f14e56056b6dfa25b1fc1f946e 100644
|
| --- a/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc
|
| +++ b/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc
|
| @@ -117,11 +117,14 @@ void ContentSubresourceFilterDriverFactory::AddHostOfURLToWhitelistSet(
|
|
|
| bool ContentSubresourceFilterDriverFactory::ShouldActivateForMainFrameURL(
|
| const GURL& url) const {
|
| - if (GetCurrentActivationScope() == ActivationScope::ALL_SITES)
|
| - return !IsWhitelisted(url);
|
| - else if (GetCurrentActivationScope() == ActivationScope::ACTIVATION_LIST)
|
| - return DidURLMatchCurrentActivationList(url) && !IsWhitelisted(url);
|
| - return false;
|
| + switch (GetCurrentActivationScope()) {
|
| + case ActivationScope::ALL_SITES:
|
| + return !IsWhitelisted(url);
|
| + case ActivationScope::ACTIVATION_LIST:
|
| + return DidURLMatchCurrentActivationList(url) && !IsWhitelisted(url);
|
| + default:
|
| + return false;
|
| + }
|
| }
|
|
|
| void ContentSubresourceFilterDriverFactory::ActivateForFrameHostIfNeeded(
|
|
|