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

Issue 2841933003: [subresource_filter] Remove some state from the driver factory (Closed)

Created:
3 years, 8 months ago by Charlie Harrison
Modified:
3 years, 7 months ago
Reviewers:
Bryan McQuade, engedy
CC:
chromium-reviews, subresource-filter-reviews_chromium.org, speed-metrics-reviews_chromium.org, jam, loading-reviews+metrics_chromium.org, csharrison+watch_chromium.org, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[subresource_filter] Remove some state from the driver factory This CL removes almost all state from the driver factory. In order to persist activation decisions (which are used for logging metrics), we thread that data through the activation state computing throttle, and store it in the throttle manager. This changes the current behavior of the activation state computing throttle, which previously was only notified when activation is ENABLED or DRYRUN. This CL also moves ActivationDecision into its own file, and tweaks the safe browsing throttle to use a full-featured throttle manager (i.e. one with a ruleset dealer) that vends the proper navigation throttles, which is necessary for verifying state aside from histograms. BUG=todo

Patch Set 1 #

Patch Set 2 : no more dep branch #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -141 lines) Patch
M chrome/browser/page_load_metrics/observers/subresource_filter_metrics_observer.cc View 1 2 chunks +5 lines, -3 lines 1 comment Download
M chrome/browser/subresource_filter/subresource_filter_browsertest.cc View 2 chunks +1 line, -2 lines 0 comments Download
M components/subresource_filter/content/browser/activation_state_computing_navigation_throttle.h View 5 chunks +14 lines, -6 lines 0 comments Download
M components/subresource_filter/content/browser/activation_state_computing_navigation_throttle.cc View 1 3 chunks +17 lines, -4 lines 0 comments Download
M components/subresource_filter/content/browser/activation_state_computing_navigation_throttle_unittest.cc View 2 chunks +8 lines, -5 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h View 1 6 chunks +3 lines, -38 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc View 1 5 chunks +18 lines, -26 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver_factory_unittest.cc View 1 5 chunks +9 lines, -5 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.h View 4 chunks +11 lines, -1 line 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.cc View 5 chunks +18 lines, -3 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_throttle_manager_unittest.cc View 3 chunks +13 lines, -4 lines 0 comments Download
M components/subresource_filter/content/browser/subresource_filter_safe_browsing_activation_throttle_unittest.cc View 1 12 chunks +58 lines, -44 lines 0 comments Download
M components/subresource_filter/core/common/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A components/subresource_filter/core/common/activation_decision.h View 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (12 generated)
Charlie Harrison
engedy: PTAL for a high level look. This is another step to killing the driver ...
3 years, 8 months ago (2017-04-26 21:56:07 UTC) #11
Charlie Harrison
Hmmm tests are failing because the metrics WCO has an implicit dependency on the throttle ...
3 years, 8 months ago (2017-04-26 22:12:07 UTC) #12
Charlie Harrison
Also +bmcquade for thoughts on dependency with metrics code.
3 years, 7 months ago (2017-04-27 12:37:07 UTC) #14
engedy
Overall, it would be nice if we could avoid passing values produced in the effectively-chrome/ ...
3 years, 7 months ago (2017-04-27 13:59:52 UTC) #16
Charlie Harrison
Thanks Balazs. I agree with your general vision, and I think we can make the ...
3 years, 7 months ago (2017-04-27 14:14:55 UTC) #17
engedy
Maybe I misunderstood something. My thinking was that each SBActivationThrottle would start out with ActivationDecision::DISABLED ...
3 years, 7 months ago (2017-04-27 14:26:15 UTC) #18
Charlie Harrison
On 2017/04/27 14:26:15, engedy wrote: > Maybe I misunderstood something. My thinking was that each ...
3 years, 7 months ago (2017-04-27 14:37:42 UTC) #19
Charlie Harrison
Actually, I think I've misunderstood your suggestion. We can retrieve the activation decision from the ...
3 years, 7 months ago (2017-05-02 03:42:22 UTC) #20
engedy
On 2017/05/02 03:42:22, Charlie (ooo-ish until may 2) wrote: > Actually, I think I've misunderstood ...
3 years, 7 months ago (2017-05-02 10:45:15 UTC) #21
Charlie Harrison
3 years, 7 months ago (2017-05-02 20:30:35 UTC) #22
Let's close this for now.

Powered by Google App Engine
This is Rietveld 408576698