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

Issue 2564043002: Supervised Users: Create ResourceThrottle only if filtering is enabled (Closed)

Created:
4 years ago by Marc Treib
Modified:
4 years ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, pam+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Supervised Users: Create ResourceThrottle only if filtering is enabled Before this CL, we were creating a SupervisedUserResourceThrottle for each top-level navigation. If the current user isn't supervised, this is pointless. One side-effect was that we were recording ManagerUsers.Filter* histograms for all navigations, including for non-supervised users. This CL adds an "enabled" field on SupervisedUserURLFilter, which is set to true iff the user is supervised. This allows us to not create the resource throttle for regular users. BUG=671472 Committed: https://crrev.com/54cf4ab900ab78c713bb4d53489f0571a433df24 Cr-Commit-Position: refs/heads/master@{#437868}

Patch Set 1 #

Patch Set 2 : tests #

Patch Set 3 : update SearchTest #

Messages

Total messages: 16 (10 generated)
Marc Treib
PTAL!
4 years ago (2016-12-09 15:30:52 UTC) #2
Bernhard Bauer
lgtm
4 years ago (2016-12-12 12:20:21 UTC) #3
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/2564043002/40001
4 years ago (2016-12-12 14:21:48 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-12 14:28:34 UTC) #13
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/54cf4ab900ab78c713bb4d53489f0571a433df24 Cr-Commit-Position: refs/heads/master@{#437868}
4 years ago (2016-12-12 15:12:10 UTC) #15
bpastene
4 years ago (2016-12-12 20:26:47 UTC) #16
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2568953002/ by bpastene@chromium.org.

The reason for reverting is: This is believed to have increased the rate of
failure for SupervisedUserContentProviderTest#testWithSupervisedUser on
linux_android_rel_ng.

See
http://test-results.appspot.com/dashboards/flakiness_dashboard.html#testType=...
for dramatic increase in failure rate after this CL landed.

Example failure: https://chromium-swarm.appspot.com/task?id=330d0f66aec28810.

Powered by Google App Engine
This is Rietveld 408576698