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

Issue 2396133003: Change the logic how Subesource Filter propagates activation. (Closed)

Created:
4 years, 2 months ago by melandory
Modified:
4 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, grt+watch_chromium.org, jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change the logic how Subesource Filter propagates activation. Activate the Safe Browsing subresource filter only if the committed URL was a Safe Browsing hit. BUG=653686, 653805 Committed: https://crrev.com/ca2463865bb7900a0404dd8fed6523ad7ae605f1 Cr-Commit-Position: refs/heads/master@{#424986}

Patch Set 1 #

Patch Set 2 : fix tests #

Patch Set 3 : fix tests #

Patch Set 4 : fix test, for real now #

Total comments: 3

Patch Set 5 : change clear() #

Total comments: 1

Patch Set 6 : activate only when hit #

Patch Set 7 : fix browser tests #

Patch Set 8 : remove empty line #

Patch Set 9 : fix browser test #

Total comments: 16

Patch Set 10 : comments #

Total comments: 2

Patch Set 11 : grepsubst "hits_set()" "safe_browsing_blacklisted_patterns_set()" #

Patch Set 12 : clear on start #

Patch Set 13 : fix tests #

Messages

Total messages: 80 (66 generated)
melandory
4 years, 2 months ago (2016-10-07 09:27:43 UTC) #9
melandory
nparker@chromium.org: Please review changes in chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc (bug description has more context)
4 years, 2 months ago (2016-10-07 21:10:58 UTC) #19
Nathan Parker
-->jialiul since she is more expert on navigation
4 years, 2 months ago (2016-10-07 21:14:46 UTC) #21
Jialiu Lin
lgtm for safe_browsing_service_browsertests.cc with a couple of comments in content_subresource_filter_driver_factory https://codereview.chromium.org/2396133003/diff/60001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h File components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h (right): https://codereview.chromium.org/2396133003/diff/60001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h#newcode149 ...
4 years, 2 months ago (2016-10-07 21:54:27 UTC) #22
engedy
Some initial comments. https://codereview.chromium.org/2396133003/diff/80001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h File components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h (right): https://codereview.chromium.org/2396133003/diff/80001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h#newcode154 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h:154: HostSet hits_hosts_; Can we get away ...
4 years, 2 months ago (2016-10-10 13:12:58 UTC) #27
engedy
As discussed off-line, let's remove the concept of activation sets altogether, and rely merely on ...
4 years, 2 months ago (2016-10-10 14:12:53 UTC) #28
melandory
Balazs, please take another look. https://codereview.chromium.org/2396133003/diff/60001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h File components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h (right): https://codereview.chromium.org/2396133003/diff/60001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h#newcode149 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h:149: HostSet activate_on_hosts_; On 2016/10/07 ...
4 years, 2 months ago (2016-10-11 15:54:17 UTC) #43
engedy
https://codereview.chromium.org/2396133003/diff/200001/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc File chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc (right): https://codereview.chromium.org/2396133003/diff/200001/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc#newcode937 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc:937: // Tests that URLS which doesn't belong to the ...
4 years, 2 months ago (2016-10-12 09:32:29 UTC) #52
melandory
https://codereview.chromium.org/2396133003/diff/200001/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc File chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc (right): https://codereview.chromium.org/2396133003/diff/200001/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc#newcode937 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc:937: // Tests that URLS which doesn't belong to the ...
4 years, 2 months ago (2016-10-12 12:29:01 UTC) #63
engedy
LGTM % comments. Once we get rid of the NavigationThrottle, let's do a huge overhaul ...
4 years, 2 months ago (2016-10-12 12:47:06 UTC) #64
melandory
https://codereview.chromium.org/2396133003/diff/260001/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/2396133003/diff/260001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc#newcode122 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc:122: safe_browsing_blacklisted_patterns_.clear(); On 2016/10/12 12:47:05, engedy wrote: > We need ...
4 years, 2 months ago (2016-10-12 13:17:52 UTC) #67
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/2396133003/320001
4 years, 2 months ago (2016-10-13 09:03:02 UTC) #76
commit-bot: I haz the power
Committed patchset #13 (id:320001)
4 years, 2 months ago (2016-10-13 09:09:34 UTC) #78
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 09:11:55 UTC) #80
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/ca2463865bb7900a0404dd8fed6523ad7ae605f1
Cr-Commit-Position: refs/heads/master@{#424986}

Powered by Google App Engine
This is Rietveld 408576698