Chromium Code Reviews
DescriptionSupervised 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)
|