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

Issue 2798983002: Introduce subresource_filter::Configuration. (Closed)

Created:
3 years, 8 months ago by engedy
Modified:
3 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, subresource-filter-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce subresource_filter::Configuration. Instead of exposing the effective parameters, which define how the subresource filter should behave, piecemeal, introduce a single struct that encapsulates all parameters of the feature. This will allow making the current configuration (with activation on Safe Browsing phishing sites) the hard-coded default, as well as adding support for multiple active configurations at the same time. BUG=609747 Review-Url: https://codereview.chromium.org/2798983002 Cr-Commit-Position: refs/heads/master@{#463190} Committed: https://chromium.googlesource.com/chromium/src/+/4e926ec962c82ee6f61f1208b4bf18411d605a59

Patch Set 1 : Tests still failing. #

Patch Set 2 : Workaround. #

Patch Set 3 : Workaround 2. #

Total comments: 6

Patch Set 4 : Address comments from csharrison@. #

Total comments: 2

Patch Set 5 : Fix SafeBrowsingServiceTest browsertest. #

Patch Set 6 : Address comment from pkalinnikov@. #

Patch Set 7 : Rebase. #

Messages

Total messages: 58 (46 generated)
engedy
Charlie, please take a look. There is a bit of a hack involved (temporarily), let ...
3 years, 8 months ago (2017-04-05 17:13:34 UTC) #12
engedy
Charlie, please take a look. There is a bit of a hack involved (temporarily), let ...
3 years, 8 months ago (2017-04-05 17:13:35 UTC) #13
Charlie Harrison
https://codereview.chromium.org/2798983002/diff/60001/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/2798983002/diff/60001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc#newcode267 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc:267: configuration_ = GetActiveConfiguration(); Eek this scares me, especially if ...
3 years, 8 months ago (2017-04-05 20:43:04 UTC) #16
engedy
https://codereview.chromium.org/2798983002/diff/60001/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/2798983002/diff/60001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc#newcode267 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc:267: configuration_ = GetActiveConfiguration(); On 2017/04/05 20:43:04, Charlie Harrison wrote: ...
3 years, 8 months ago (2017-04-07 08:40:58 UTC) #25
pkalinnikov
Thanks for this clean up! I've put my 2 cents. https://codereview.chromium.org/2798983002/diff/120001/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/2798983002/diff/120001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc#newcode42 ...
3 years, 8 months ago (2017-04-07 09:22:06 UTC) #29
engedy
https://codereview.chromium.org/2798983002/diff/120001/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/2798983002/diff/120001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc#newcode42 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc:42: // TODO(pkalinnikov): Cache |rate| and other variation params in ...
3 years, 8 months ago (2017-04-07 09:28:29 UTC) #35
engedy
Dear Owners, could you please take a quick look at mechanical changes in: @Nathan: c/b/safe_browsing/safe_browsing_service_browsertest.cc ...
3 years, 8 months ago (2017-04-07 09:31:33 UTC) #37
Charlie Harrison
LGTM
3 years, 8 months ago (2017-04-07 12:22:18 UTC) #40
Sorin Jianu
lgtm Thank you! component updater paths lgtm
3 years, 8 months ago (2017-04-07 16:07:55 UTC) #45
Nathan Parker
lgtm!
3 years, 8 months ago (2017-04-07 23:08:16 UTC) #53
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/2798983002/200001
3 years, 8 months ago (2017-04-10 07:29:05 UTC) #55
commit-bot: I haz the power
3 years, 8 months ago (2017-04-10 08:15:57 UTC) #58
Message was sent while issue was closed.
Committed patchset #7 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/4e926ec962c82ee6f61f1208b4bf...

Powered by Google App Engine
This is Rietveld 408576698