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

Issue 2703093002: Add metrics for tracking subresource filter activation suppression. (Closed)

Created:
3 years, 10 months ago by Bryan McQuade
Modified:
3 years, 10 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, csharrison+watch_chromium.org, darin-cc_chromium.org, jam, loading-reviews+metrics_chromium.org, subresource-filter-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add metrics for tracking subresource filter activation suppression. This change adds an API on ContentSubresourceFilterDriverFactory that the SubresourceFilterMetricsObserver queries to determine whether and why activation was suppressed for the currently committed page load. The SubresourceFilterMetricsObserver then logs histograms that allow us to understand how often activation is suppressed. BUG=694036 Review-Url: https://codereview.chromium.org/2703093002 Cr-Commit-Position: refs/heads/master@{#452027} Committed: https://chromium.googlesource.com/chromium/src/+/ec69818af043485daccd4d4f43718390e9ddcb08

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : rebase #

Patch Set 4 : update tests #

Patch Set 5 : fixes #

Patch Set 6 : cleanup #

Patch Set 7 : cleanup #

Patch Set 8 : fix naming #

Patch Set 9 : fix browsertest #

Total comments: 9

Patch Set 10 : expand histograms.xml comment #

Total comments: 6

Patch Set 11 : Rename to ActivationDecision. #

Patch Set 12 : address comments #

Total comments: 4

Patch Set 13 : address comments #

Total comments: 4

Patch Set 14 : address comments #

Messages

Total messages: 72 (56 generated)
Bryan McQuade
PTAL, thanks! This change introduces an enum that explains why activation was suppressed. This enables ...
3 years, 10 months ago (2017-02-20 02:09:16 UTC) #22
engedy
Thanks! Please see two questions below. https://codereview.chromium.org/2703093002/diff/160001/chrome/browser/page_load_metrics/observers/subresource_filter_metrics_observer.cc File chrome/browser/page_load_metrics/observers/subresource_filter_metrics_observer.cc (right): https://codereview.chromium.org/2703093002/diff/160001/chrome/browser/page_load_metrics/observers/subresource_filter_metrics_observer.cc#newcode65 chrome/browser/page_load_metrics/observers/subresource_filter_metrics_observer.cc:65: UMA_HISTOGRAM_ENUMERATION( Unlike all ...
3 years, 10 months ago (2017-02-20 16:19:13 UTC) #35
Bryan McQuade
Thanks! A couple high level responses to your earlier comments. Let me know what you ...
3 years, 10 months ago (2017-02-20 19:18:04 UTC) #36
Bryan McQuade
https://codereview.chromium.org/2703093002/diff/160001/chrome/browser/page_load_metrics/observers/subresource_filter_metrics_observer.cc File chrome/browser/page_load_metrics/observers/subresource_filter_metrics_observer.cc (right): https://codereview.chromium.org/2703093002/diff/160001/chrome/browser/page_load_metrics/observers/subresource_filter_metrics_observer.cc#newcode65 chrome/browser/page_load_metrics/observers/subresource_filter_metrics_observer.cc:65: UMA_HISTOGRAM_ENUMERATION( On 2017/02/20 at 19:18:04, Bryan McQuade wrote: > ...
3 years, 10 months ago (2017-02-20 21:37:58 UTC) #37
Bryan McQuade
https://codereview.chromium.org/2703093002/diff/160001/chrome/browser/page_load_metrics/observers/subresource_filter_metrics_observer.cc File chrome/browser/page_load_metrics/observers/subresource_filter_metrics_observer.cc (right): https://codereview.chromium.org/2703093002/diff/160001/chrome/browser/page_load_metrics/observers/subresource_filter_metrics_observer.cc#newcode65 chrome/browser/page_load_metrics/observers/subresource_filter_metrics_observer.cc:65: UMA_HISTOGRAM_ENUMERATION( On 2017/02/20 at 21:37:58, Bryan McQuade wrote: > ...
3 years, 10 months ago (2017-02-21 13:38:22 UTC) #40
engedy
Looks good % comments. I would like to take a look at the final enum ...
3 years, 10 months ago (2017-02-21 14:13:13 UTC) #41
Bryan McQuade
Thanks! Addressed comments. PTAL. https://codereview.chromium.org/2703093002/diff/160001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h File components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h (right): https://codereview.chromium.org/2703093002/diff/160001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h#newcode49 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h:49: enum ActivationSuppressionReason { On 2017/02/21 ...
3 years, 10 months ago (2017-02-21 19:15:19 UTC) #48
Bryan McQuade
isherman, PTAL for histograms.xml, thanks!
3 years, 10 months ago (2017-02-21 21:53:09 UTC) #52
Ilya Sherman
Metrics LGTM % comments: https://codereview.chromium.org/2703093002/diff/220001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h File components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h (right): https://codereview.chromium.org/2703093002/diff/220001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h#newcode49 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h:49: enum ActivationDecision { Please document ...
3 years, 10 months ago (2017-02-21 22:58:24 UTC) #53
Bryan McQuade
Thanks! Addressed comments. PTAL. https://codereview.chromium.org/2703093002/diff/220001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h File components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h (right): https://codereview.chromium.org/2703093002/diff/220001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h#newcode49 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h:49: enum ActivationDecision { On 2017/02/21 ...
3 years, 10 months ago (2017-02-22 01:03:49 UTC) #55
Ilya Sherman
(Still LGTM)
3 years, 10 months ago (2017-02-22 01:20:06 UTC) #57
engedy
LGTM % comments below, thanks a lot! Sorry for being really nit-picky, it is just ...
3 years, 10 months ago (2017-02-22 12:26:51 UTC) #60
Bryan McQuade
Thanks! Addressed comments. https://codereview.chromium.org/2703093002/diff/240001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h File components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h (right): https://codereview.chromium.org/2703093002/diff/240001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h#newcode50 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h:50: enum ActivationDecision { On 2017/02/22 at ...
3 years, 10 months ago (2017-02-22 12:56:17 UTC) #63
engedy
Still LGTM, thanks!
3 years, 10 months ago (2017-02-22 13:03:48 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2703093002/260001
3 years, 10 months ago (2017-02-22 13:53:33 UTC) #69
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 13:59:00 UTC) #72
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/ec69818af043485daccd4d4f4371...

Powered by Google App Engine
This is Rietveld 408576698