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

Issue 2645283007: Add the client for accessing Subresource Filter only list. (Closed)

Created:
3 years, 11 months ago by melandory
Modified:
3 years, 8 months ago
CC:
chromium-reviews, vakh+watch_chromium.org, droger+watchlist_chromium.org, grt+watch_chromium.org, sdefresne+watchlist_chromium.org, jam, Randy Smith (Not in Mondays), darin-cc_chromium.org, asvitkine+watch_chromium.org, blundell+watchlist_chromium.org, loading-reviews_chromium.org, mmenke
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement the SubresourceFilterActivationNavigationThrottle for accessing the Subresource Filter list. In this Cl NavigationThrottle acts only on WillProcessResonce signal. This is temporal behavior and will changed in followup CLs. Part 1, https://codereview.chromium.org/2690413002 Part 2, https://codereview.chromium.org/2645283007 (this one) Part 3, https://codereview.chromium.org/2770153004 BUG=671962 Review-Url: https://codereview.chromium.org/2645283007 Cr-Commit-Position: refs/heads/master@{#460476} Committed: https://chromium.googlesource.com/chromium/src/+/2cf99830cfbe5d462b161089bb159ac9f29a620c

Patch Set 1 #

Total comments: 8

Patch Set 2 : fix unittest #

Total comments: 6

Patch Set 3 : cleanup #

Total comments: 1

Patch Set 4 : . #

Total comments: 12

Patch Set 5 : guard in unittestst #

Patch Set 6 : . #

Patch Set 7 : fix HistoryNavTest #

Total comments: 8

Patch Set 8 : . #

Total comments: 9

Patch Set 9 : adressed comments from jwd #

Total comments: 2

Patch Set 10 : adressed comments from jwd #

Total comments: 39

Patch Set 11 : full changes and engedy@ comments #

Patch Set 12 : only changes specific to this cl #

Total comments: 43

Patch Set 13 : comments #

Patch Set 14 : feature guard #

Patch Set 15 : guard creation of nav. throttle with feature #

Patch Set 16 : rebased #

Patch Set 17 : feature #

Unified diffs Side-by-side diffs Delta from patch set Stats (+522 lines, -95 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +9 lines, -0 lines 0 comments Download
A chrome/browser/subresource_filter/navigation_throttle_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/browser/subresource_filter/navigation_throttle_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +29 lines, -0 lines 0 comments Download
M chrome/browser/subresource_filter/subresource_filter_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 13 chunks +188 lines, -80 lines 0 comments Download
M components/safe_browsing_db/v4_database.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M components/safe_browsing_db/v4_local_database_manager.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/subresource_filter/content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
M components/subresource_filter/content/browser/content_activation_list_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +6 lines, -0 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver_factory_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +26 lines, -11 lines 0 comments Download
A components/subresource_filter/content/browser/subresource_filter_safe_browsing_activation_throttle.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +51 lines, -0 lines 0 comments Download
A components/subresource_filter/content/browser/subresource_filter_safe_browsing_activation_throttle.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +144 lines, -0 lines 0 comments Download
M components/subresource_filter/core/browser/subresource_filter_features.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -0 lines 0 comments Download
M components/subresource_filter/core/browser/subresource_filter_features.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +8 lines, -0 lines 0 comments Download
M components/subresource_filter/core/browser/subresource_filter_features_test_support.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -1 line 0 comments Download
A components/subresource_filter/core/common/DEPS View 1 2 3 4 5 6 7 8 9 10 12 1 chunk +3 lines, -0 lines 0 comments Download
M components/subresource_filter/core/common/activation_list.h View 1 2 11 12 1 chunk +2 lines, -1 line 0 comments Download
M components/subresource_filter/core/common/activation_list.cc View 1 2 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 193 (161 generated)
melandory
Hi Varun, could you please review the whole CL, but especially navigation throttle and ugly ...
3 years, 10 months ago (2017-02-02 14:36:28 UTC) #15
vakh (use Gerrit instead)
https://codereview.chromium.org/2645283007/diff/100001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/2645283007/diff/100001/chrome/browser/BUILD.gn#newcode1244 chrome/browser/BUILD.gn:1244: "subresource_filter/subresource_filter_navigation_trottle_util.cc", nit: since it is already in the subresource_fiter ...
3 years, 10 months ago (2017-02-10 03:00:12 UTC) #34
melandory
https://codereview.chromium.org/2645283007/diff/100001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/2645283007/diff/100001/chrome/browser/BUILD.gn#newcode1244 chrome/browser/BUILD.gn:1244: "subresource_filter/subresource_filter_navigation_trottle_util.cc", On 2017/02/10 03:00:11, vakh (Varun Khaneja) wrote: > ...
3 years, 10 months ago (2017-02-14 17:40:34 UTC) #37
melandory
3 years, 10 months ago (2017-02-14 17:40:39 UTC) #38
melandory
On 2017/02/14 17:40:39, melandory wrote: Please take another look. Thanks!
3 years, 10 months ago (2017-02-16 15:01:34 UTC) #44
melandory
jwd@chromium.org: Please review change in histogram.xml
3 years, 10 months ago (2017-02-17 13:00:36 UTC) #56
melandory
engedy@: Please take a look at subresource_filter specific files.
3 years, 10 months ago (2017-02-17 13:02:46 UTC) #58
engedy
Some nits, naming suggestions, documenting our offline discussions mostly for myself so that I will ...
3 years, 10 months ago (2017-02-17 20:50:53 UTC) #59
jwd
https://codereview.chromium.org/2645283007/diff/360001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2645283007/diff/360001/tools/metrics/histograms/histograms.xml#newcode67155 tools/metrics/histograms/histograms.xml:67155: + <suffix name="SubresourceFilter"/> I don't think this does anything. ...
3 years, 10 months ago (2017-02-17 22:40:33 UTC) #60
vakh (use Gerrit instead)
https://codereview.chromium.org/2645283007/diff/300001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2645283007/diff/300001/chrome/browser/chrome_content_browser_client.cc#newcode3303 chrome/browser/chrome_content_browser_client.cc:3303: MaybeCreateSubresourceFilterNavigationThrottle( nit: you don't need the temporary std::unique_ptr
3 years, 10 months ago (2017-02-22 22:55:42 UTC) #61
melandory
https://codereview.chromium.org/2645283007/diff/360001/components/subresource_filter/content/browser/subresource_filter_activation_navigation_throttle.cc File components/subresource_filter/content/browser/subresource_filter_activation_navigation_throttle.cc (right): https://codereview.chromium.org/2645283007/diff/360001/components/subresource_filter/content/browser/subresource_filter_activation_navigation_throttle.cc#newcode60 components/subresource_filter/content/browser/subresource_filter_activation_navigation_throttle.cc:60: // SafeBrowsingService::Client implementation, called on the IO thread once ...
3 years, 9 months ago (2017-02-28 12:16:06 UTC) #80
melandory
friendly ping.
3 years, 9 months ago (2017-03-02 10:18:28 UTC) #92
engedy
Looks good, please see initial comments, I'll do another more detailed pass. https://codereview.chromium.org/2645283007/diff/530001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc File components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc ...
3 years, 9 months ago (2017-03-02 12:00:43 UTC) #93
melandory
https://codereview.chromium.org/2645283007/diff/530001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc File components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc (right): https://codereview.chromium.org/2645283007/diff/530001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc#newcode338 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc:338: DidURLMatchSubresourceFilterOnlyList(const GURL& url) const { On 2017/03/02 12:00:42, engedy ...
3 years, 9 months ago (2017-03-06 15:00:01 UTC) #111
jwd
https://codereview.chromium.org/2645283007/diff/610001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2645283007/diff/610001/tools/metrics/histograms/histograms.xml#oldcode67712 tools/metrics/histograms/histograms.xml:67712: <summary>Total length of the server redirects during the navigation.</summary> ...
3 years, 9 months ago (2017-03-07 22:31:17 UTC) #114
melandory
https://codereview.chromium.org/2645283007/diff/610001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2645283007/diff/610001/tools/metrics/histograms/histograms.xml#oldcode67712 tools/metrics/histograms/histograms.xml:67712: <summary>Total length of the server redirects during the navigation.</summary> ...
3 years, 9 months ago (2017-03-08 19:37:25 UTC) #115
jwd
https://codereview.chromium.org/2645283007/diff/610001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2645283007/diff/610001/tools/metrics/histograms/histograms.xml#newcode120591 tools/metrics/histograms/histograms.xml:120591: + name="SubresourceFilter.PageLoad.RedirectChainMatchPattern"/> On 2017/03/08 19:37:25, melandory wrote: > On ...
3 years, 9 months ago (2017-03-08 22:59:26 UTC) #116
melandory
https://codereview.chromium.org/2645283007/diff/610001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2645283007/diff/610001/tools/metrics/histograms/histograms.xml#newcode120591 tools/metrics/histograms/histograms.xml:120591: + name="SubresourceFilter.PageLoad.RedirectChainMatchPattern"/> On 2017/03/08 22:59:26, jwd wrote: > On ...
3 years, 9 months ago (2017-03-09 15:48:46 UTC) #121
melandory
vakh@ and engedy@: can you take another look, please.
3 years, 9 months ago (2017-03-09 16:46:47 UTC) #122
engedy
Could we replace this on top of https://codereview.chromium.org/2733833002? I think that would make everything much ...
3 years, 9 months ago (2017-03-10 14:39:33 UTC) #123
jwd
Histograms LGTM. Thanks for the changes! https://codereview.chromium.org/2645283007/diff/610001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2645283007/diff/610001/tools/metrics/histograms/histograms.xml#newcode120591 tools/metrics/histograms/histograms.xml:120591: + name="SubresourceFilter.PageLoad.RedirectChainMatchPattern"/> On ...
3 years, 9 months ago (2017-03-10 16:43:25 UTC) #124
melandory
https://codereview.chromium.org/2645283007/diff/650001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2645283007/diff/650001/chrome/browser/chrome_content_browser_client.cc#newcode3420 chrome/browser/chrome_content_browser_client.cc:3420: content::NavigationThrottle* subresource_filter_activation_throttle = On 2017/03/10 14:39:32, engedy wrote: > ...
3 years, 9 months ago (2017-03-15 13:41:36 UTC) #138
melandory
3 years, 9 months ago (2017-03-15 13:41:41 UTC) #139
vakh (use Gerrit instead)
lgtm with nits As with another file renamed previously, please consider: components/subresource_filter/content/browser/safe_browsing_activation_throttle.* over components/subresource_filter/content/browser/subresource_filter_safe_browsing_activation_throttle.* https://codereview.chromium.org/2645283007/diff/730001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc ...
3 years, 9 months ago (2017-03-16 20:51:18 UTC) #140
engedy
LGTM % comments, thanks a lot for rebasing on the refactor, it makes the change ...
3 years, 9 months ago (2017-03-21 13:44:17 UTC) #141
melandory
https://codereview.chromium.org/2645283007/diff/730001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2645283007/diff/730001/chrome/browser/chrome_content_browser_client.cc#newcode3422 chrome/browser/chrome_content_browser_client.cc:3422: if (subresource_filter_activation_throttle) On 2017/03/21 13:44:16, engedy wrote: > nit: ...
3 years, 9 months ago (2017-03-24 15:49:28 UTC) #151
melandory
3 years, 9 months ago (2017-03-24 15:49:33 UTC) #152
melandory
Guarding creation of the nav throttle with the feature and landing (this way I will ...
3 years, 8 months ago (2017-03-29 15:01:32 UTC) #183
melandory
Guarding creation of the nav throttle with the feature and landing (this way I will ...
3 years, 8 months ago (2017-03-29 15:01:37 UTC) #184
melandory
Guarding creation of the nav throttle with the feature and landing (this way I will ...
3 years, 8 months ago (2017-03-29 15:01:42 UTC) #185
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/2645283007/930001
3 years, 8 months ago (2017-03-29 17:59:20 UTC) #190
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 19:19:51 UTC) #193
Message was sent while issue was closed.
Committed patchset #17 (id:930001) as
https://chromium.googlesource.com/chromium/src/+/2cf99830cfbe5d462b161089bb15...

Powered by Google App Engine
This is Rietveld 408576698