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

Unified Diff: components/subresource_filter/content/renderer/subresource_filter_agent.cc

Issue 2661433002: Introduce VerifiedRulesetDealer and its async Handle. (Closed)
Patch Set: Refactor tests. Created 3 years, 11 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/renderer/subresource_filter_agent.cc
diff --git a/components/subresource_filter/content/renderer/subresource_filter_agent.cc b/components/subresource_filter/content/renderer/subresource_filter_agent.cc
index 7290e0d994f0b4823e5dc1e0ebb76378bfa9eea1..876cea1dfc2baabe60331d430ae897341da111f2 100644
--- a/components/subresource_filter/content/renderer/subresource_filter_agent.cc
+++ b/components/subresource_filter/content/renderer/subresource_filter_agent.cc
@@ -84,7 +84,7 @@ void SubresourceFilterAgent::RecordHistogramsOnLoadCommitted() {
if (activation_state_for_provisional_load_ != ActivationState::DISABLED) {
UMA_HISTOGRAM_BOOLEAN("SubresourceFilter.DocumentLoad.RulesetIsAvailable",
- ruleset_dealer_->IsRulesetAvailable());
+ ruleset_dealer_->IsRulesetFileAvailable());
}
}
@@ -163,7 +163,7 @@ void SubresourceFilterAgent::DidCommitProvisionalLoad(
ancestor_document_urls.front().SchemeIsFile()) {
RecordHistogramsOnLoadCommitted();
if (activation_state_for_provisional_load_ != ActivationState::DISABLED &&
- ruleset_dealer_->IsRulesetAvailable()) {
+ ruleset_dealer_->IsRulesetFileAvailable()) {
base::Closure first_disallowed_load_callback(
base::Bind(&SubresourceFilterAgent::
SignalFirstSubresourceDisallowedForCommittedLoad,

Powered by Google App Engine
This is Rietveld 408576698