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

Issue 2776493005: Convert SupervisedUserResourceThrottle to a NavigationThrottle. (Closed)

Created:
3 years, 9 months ago by mmenke
Modified:
3 years, 8 months ago
CC:
chromium-reviews, pam+watch_chromium.org, skanuj+watch_chromium.org, melevin+watch_chromium.org, donnd+watch_chromium.org, Randy Smith (Not in Mondays), Patrick Dubroy, dbeam+watch-history_chromium.org, jfweitz+watch_chromium.org, David Black, Jered, samarth+watch_chromium.org, loading-reviews_chromium.org, kmadhusu+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert SupervisedUserResourceThrottle to a NavigationThrottle. Also do a bit of incidental cleanup that enables - remove the second SuprvisedUserURLFilter that lived on the IO thread, remove refcounting of SuprvisedUserURLFilter, get rid of SupervisedUserContext, don't duplicate std::maps when updating the filter, etc. This is part of the effort to move content/browser/loader behind a Mojo interface TBR=calamity@chromium.org BUG=704648 Review-Url: https://codereview.chromium.org/2776493005 Cr-Commit-Position: refs/heads/master@{#460940} Committed: https://chromium.googlesource.com/chromium/src/+/db2637ff32cb9a619f1e2920293eb2e68f20ac4c

Patch Set 1 #

Patch Set 2 : Fix subframe case #

Patch Set 3 : Rename #

Patch Set 4 : Silly merge #

Patch Set 5 : Fix unittests #

Patch Set 6 : Fix more stuff... #

Patch Set 7 : Fix Android #

Total comments: 11

Patch Set 8 : Uninteresting merge for...reasons #

Patch Set 9 : Response to comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -910 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 2 chunks +0 lines, -12 lines 0 comments Download
M chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 chunks +0 lines, -16 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 3 chunks +0 lines, -16 lines 0 comments Download
M chrome/browser/search/search.cc View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/search/search_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_browsertest.cc View 4 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_content_provider_android.cc View 1 2 3 4 5 6 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_interstitial.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_navigation_observer.h View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_navigation_observer.cc View 1 chunk +2 lines, -9 lines 0 comments Download
A chrome/browser/supervised_user/supervised_user_navigation_throttle.h View 1 chunk +66 lines, -0 lines 0 comments Download
A + chrome/browser/supervised_user/supervised_user_navigation_throttle.cc View 1 2 3 4 5 6 7 8 5 chunks +77 lines, -64 lines 2 comments Download
A + chrome/browser/supervised_user/supervised_user_navigation_throttle_browsertest.cc View 1 2 5 chunks +9 lines, -10 lines 0 comments Download
D chrome/browser/supervised_user/supervised_user_resource_throttle.h View 1 chunk +0 lines, -68 lines 0 comments Download
D chrome/browser/supervised_user/supervised_user_resource_throttle.cc View 1 chunk +0 lines, -232 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_resource_throttle_browsertest.cc View 1 2 1 chunk +0 lines, -139 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_service.h View 1 2 3 4 5 6 3 chunks +5 lines, -52 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_service.cc View 1 2 3 4 5 6 13 chunks +20 lines, -124 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_service_unittest.cc View 1 2 3 4 5 6 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_url_filter.h View 6 chunks +9 lines, -14 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_url_filter.cc View 5 chunks +15 lines, -16 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_url_filter_unittest.cc View 1 2 3 4 5 16 chunks +37 lines, -37 lines 0 comments Download
M chrome/browser/ui/webui/browsing_history_handler.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/supervised_user_internals_message_handler.h View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/supervised_user_internals_message_handler.cc View 1 2 3 4 5 6 7 8 6 chunks +9 lines, -64 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 85 (57 generated)
mmenke
[treib]: Since there are already browser tests, and they're all passing, I'm assuming this CL ...
3 years, 9 months ago (2017-03-27 18:34:32 UTC) #45
Marc Treib
Some early comments before starting the actual review. On 2017/03/27 18:34:32, mmenke wrote: > [treib]: ...
3 years, 8 months ago (2017-03-28 08:37:52 UTC) #48
Marc Treib
Thanks! Very nice cleanup, just a few minor comments. Also +bauerb for his thoughts on ...
3 years, 8 months ago (2017-03-28 10:22:58 UTC) #50
Bernhard Bauer
Oh, neat! I didn't realize that this would allow us to remove the second URL ...
3 years, 8 months ago (2017-03-28 11:16:05 UTC) #51
Bernhard Bauer
On 2017/03/27 18:34:32, mmenke wrote: > [treib]: Since there are already browser tests, and they're ...
3 years, 8 months ago (2017-03-28 11:18:46 UTC) #52
mmenke
A couple quick responses. I'll update code and do some manual testing later today. On ...
3 years, 8 months ago (2017-03-28 12:06:29 UTC) #53
Marc Treib
On 2017/03/28 12:06:29, mmenke wrote: > A couple quick responses. I'll update code and do ...
3 years, 8 months ago (2017-03-28 12:11:49 UTC) #54
Bernhard Bauer
On 2017/03/28 12:11:49, Marc Treib wrote: > On 2017/03/28 12:06:29, mmenke wrote: > > A ...
3 years, 8 months ago (2017-03-28 16:44:28 UTC) #55
mmenke
On 2017/03/28 16:44:28, Bernhard Bauer wrote: > On 2017/03/28 12:11:49, Marc Treib wrote: > > ...
3 years, 8 months ago (2017-03-28 16:52:20 UTC) #56
mmenke
On 2017/03/28 08:37:52, Marc Treib wrote: > Some early comments before starting the actual review. ...
3 years, 8 months ago (2017-03-28 17:53:27 UTC) #57
mmenke
I've responded to comments, but I remain stumped as to how to check this manually. ...
3 years, 8 months ago (2017-03-28 17:55:05 UTC) #58
Marc Treib
On 2017/03/28 17:53:27, mmenke wrote: > On 2017/03/28 08:37:52, Marc Treib wrote: > > Some ...
3 years, 8 months ago (2017-03-29 08:07:56 UTC) #59
Marc Treib
Thanks! LGTM, assuming that everything works out in the manual tests. https://codereview.chromium.org/2776493005/diff/200001/chrome/browser/supervised_user/supervised_user_url_filter.cc File chrome/browser/supervised_user/supervised_user_url_filter.cc (left): ...
3 years, 8 months ago (2017-03-29 08:08:41 UTC) #60
Bernhard Bauer
LGTM if you need it.
3 years, 8 months ago (2017-03-29 11:52:20 UTC) #61
mmenke
On 2017/03/29 08:07:56, Marc Treib wrote: > On 2017/03/28 17:53:27, mmenke wrote: > > On ...
3 years, 8 months ago (2017-03-29 17:55:11 UTC) #62
mmenke
So creating a new supervised user seems to be working, it just takes a really, ...
3 years, 8 months ago (2017-03-29 19:43:02 UTC) #63
Marc Treib
On 2017/03/29 19:43:02, mmenke wrote: > So creating a new supervised user seems to be ...
3 years, 8 months ago (2017-03-30 08:48:57 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/2776493005/240001
3 years, 8 months ago (2017-03-30 14:39:51 UTC) #66
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/398707)
3 years, 8 months ago (2017-03-30 14:50:58 UTC) #68
mmenke
Oops, forgot the TBRs
3 years, 8 months ago (2017-03-30 14:55:46 UTC) #69
mmenke
[+sky]: Please review chrome/browser/ui/webui/*. Already had a c/b/supervised_user OWNERs signoff, though they don't look to ...
3 years, 8 months ago (2017-03-30 15:05:46 UTC) #71
sky
LGTM
3 years, 8 months ago (2017-03-30 20:09:48 UTC) #72
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/2776493005/240001
3 years, 8 months ago (2017-03-30 20:31:41 UTC) #74
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/399098)
3 years, 8 months ago (2017-03-30 20:42:41 UTC) #76
mmenke
[+calamity]: TBRing you for browsing_history_handler for trivial API change in a dependency.
3 years, 8 months ago (2017-03-30 20:47:38 UTC) #79
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/2776493005/240001
3 years, 8 months ago (2017-03-30 20:48:53 UTC) #81
commit-bot: I haz the power
Committed patchset #9 (id:240001) as https://chromium.googlesource.com/chromium/src/+/db2637ff32cb9a619f1e2920293eb2e68f20ac4c
3 years, 8 months ago (2017-03-31 00:00:50 UTC) #84
calamity
3 years, 8 months ago (2017-04-03 04:42:02 UTC) #85
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698