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 7ba5c8223658a6982f4c36f09003b373a05efffa..94ff42c958574bda22426de909a92d117c13ecea 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 |
@@ -223,16 +223,19 @@ void ContentSubresourceFilterDriverFactory::WillProcessResponse( |
DCHECK(activation_decision_ != ActivationDecision::UNKNOWN); |
if (activation_decision_ != ActivationDecision::ACTIVATED) { |
ResetActivationState(); |
- return; |
+ } else { |
+ activation_level_ = configuration_.activation_level; |
+ measure_performance_ = activation_level_ != ActivationLevel::DISABLED && |
+ ShouldMeasurePerformanceForPageLoad( |
+ configuration_.performance_measurement_rate); |
} |
- activation_level_ = configuration_.activation_level; |
- measure_performance_ = activation_level_ != ActivationLevel::DISABLED && |
- ShouldMeasurePerformanceForPageLoad( |
- configuration_.performance_measurement_rate); |
ActivationState state = ActivationState(activation_level_); |
state.measure_performance = measure_performance_; |
- throttle_manager_->NotifyPageActivationComputed(navigation_handle, state); |
+ |
+ client_->OnActivationComputed(navigation_handle->GetURL(), state); |
+ if (activation_level_ == ActivationLevel::ENABLED) |
+ throttle_manager_->NotifyPageActivationComputed(navigation_handle, state); |
} |
void ContentSubresourceFilterDriverFactory::OnFirstSubresourceLoadDisallowed() { |