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

Unified Diff: chrome/browser/page_load_metrics/observers/subresource_filter_metrics_observer.cc

Issue 2841933003: [subresource_filter] Remove some state from the driver factory (Closed)
Patch Set: no more dep branch Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/subresource_filter/subresource_filter_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/page_load_metrics/observers/subresource_filter_metrics_observer.cc
diff --git a/chrome/browser/page_load_metrics/observers/subresource_filter_metrics_observer.cc b/chrome/browser/page_load_metrics/observers/subresource_filter_metrics_observer.cc
index 28945757727e74fc45360b6c351d0194484b0a16..e290af52293d2156ca7002a0dd2bc0e904c3e50d 100644
--- a/chrome/browser/page_load_metrics/observers/subresource_filter_metrics_observer.cc
+++ b/chrome/browser/page_load_metrics/observers/subresource_filter_metrics_observer.cc
@@ -6,12 +6,13 @@
#include "chrome/browser/page_load_metrics/page_load_metrics_util.h"
#include "components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h"
+#include "components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.h"
+#include "components/subresource_filter/core/common/activation_decision.h"
#include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h"
using subresource_filter::ContentSubresourceFilterDriverFactory;
-using ActivationDecision = subresource_filter::
- ContentSubresourceFilterDriverFactory::ActivationDecision;
+using ActivationDecision = subresource_filter::ActivationDecision;
namespace internal {
@@ -157,7 +158,8 @@ SubresourceFilterMetricsObserver::OnCommit(
if (subres_filter)
LogActivationDecisionMetrics(
navigation_handle,
- subres_filter->GetActivationDecisionForLastCommittedPageLoad());
+ subres_filter->throttle_manager()
engedy 2017/04/27 13:59:52 I can see two somewhat acceptable options here (re
+ ->GetActivationDecisionForLastCommittedPageLoad());
return CONTINUE_OBSERVING;
}
« no previous file with comments | « no previous file | chrome/browser/subresource_filter/subresource_filter_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698