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

Issue 2795993002: SupervisedUserNavigationThrottle: create only for supervised profiles (Closed)

Created:
3 years, 8 months ago by Marc Treib
Modified:
3 years, 8 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, pam+watch_chromium.org, skanuj+watch_chromium.org, melevin+watch_chromium.org, donnd+watch_chromium.org, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, Jered, aberent
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

SupervisedUserNavigationThrottle: create only for supervised profiles 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. With this CL, we create the throttle only for supervised users. This is a spiritual re-land of https://crrev.com/2564043002/, but in the meantime, much has changed (the ResourceThrottle has become a NavigationThrottle). BUG=671472 Review-Url: https://codereview.chromium.org/2795993002 Cr-Commit-Position: refs/heads/master@{#462045} Committed: https://chromium.googlesource.com/chromium/src/+/bd6c71810f7c5f812e07e8c5f343a024d061cf0e

Patch Set 1 #

Total comments: 3

Patch Set 2 : simplify #

Total comments: 3

Patch Set 3 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -0 lines) Patch
M chrome/browser/supervised_user/supervised_user_navigation_throttle.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_navigation_throttle_browsertest.cc View 1 chunk +25 lines, -0 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_url_filter.h View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (22 generated)
Marc Treib
bauerb: Please review. Low-prio, feel free to postpone until convenient. aberent: FYI, since you own ...
3 years, 8 months ago (2017-04-04 11:07:06 UTC) #6
Bernhard Bauer
https://codereview.chromium.org/2795993002/diff/1/chrome/browser/supervised_user/supervised_user_url_filter.h File chrome/browser/supervised_user/supervised_user_url_filter.h (right): https://codereview.chromium.org/2795993002/diff/1/chrome/browser/supervised_user/supervised_user_url_filter.h#newcode60 chrome/browser/supervised_user/supervised_user_url_filter.h:60: // Called whenever the filter changes. That's not correct, ...
3 years, 8 months ago (2017-04-04 12:27:59 UTC) #7
Marc Treib
https://codereview.chromium.org/2795993002/diff/1/chrome/browser/supervised_user/supervised_user_url_filter.h File chrome/browser/supervised_user/supervised_user_url_filter.h (right): https://codereview.chromium.org/2795993002/diff/1/chrome/browser/supervised_user/supervised_user_url_filter.h#newcode60 chrome/browser/supervised_user/supervised_user_url_filter.h:60: // Called whenever the filter changes. On 2017/04/04 12:27:59, ...
3 years, 8 months ago (2017-04-04 12:34:52 UTC) #8
Marc Treib
PTAL again! (when you have time - not urgent at all) https://codereview.chromium.org/2795993002/diff/1/chrome/browser/supervised_user/supervised_user_url_filter.h File chrome/browser/supervised_user/supervised_user_url_filter.h (right): ...
3 years, 8 months ago (2017-04-05 09:06:38 UTC) #12
Bernhard Bauer
Nice, LGTM! https://codereview.chromium.org/2795993002/diff/20001/chrome/browser/supervised_user/supervised_user_navigation_throttle.cc File chrome/browser/supervised_user/supervised_user_navigation_throttle.cc (right): https://codereview.chromium.org/2795993002/diff/20001/chrome/browser/supervised_user/supervised_user_navigation_throttle.cc#newcode125 chrome/browser/supervised_user/supervised_user_navigation_throttle.cc:125: if (!profile->IsSupervised() || !navigation_handle->IsInMainFrame()) I would split ...
3 years, 8 months ago (2017-04-05 09:31:12 UTC) #13
Marc Treib
https://codereview.chromium.org/2795993002/diff/20001/chrome/browser/supervised_user/supervised_user_navigation_throttle.cc File chrome/browser/supervised_user/supervised_user_navigation_throttle.cc (right): https://codereview.chromium.org/2795993002/diff/20001/chrome/browser/supervised_user/supervised_user_navigation_throttle.cc#newcode125 chrome/browser/supervised_user/supervised_user_navigation_throttle.cc:125: if (!profile->IsSupervised() || !navigation_handle->IsInMainFrame()) On 2017/04/05 09:31:12, Bernhard (slow ...
3 years, 8 months ago (2017-04-05 11:43:33 UTC) #17
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/2795993002/40001
3 years, 8 months ago (2017-04-05 12:51:47 UTC) #27
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 12:56:07 UTC) #30
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/bd6c71810f7c5f812e07e8c5f343...

Powered by Google App Engine
This is Rietveld 408576698