[subresource_filter] Only set metadata when the experimental UI is turned on

Desktop / Chromium - Charles Harrison [chromium.org] - 16 June 2017 18:05 EDT

This patch also DCHECKs that we only whitelist via content settings if the experimental UI is on.

Bug: 689487 Change-Id: I520ee01b1b232e2ec40cfe6721b10a8cb922f5d3 Reviewed-on: https://chromium-review.googlesource.com/538273 Commit-Queue: Charlie Harrison

305d75a [subresource_filter] Only set metadata when the experimental UI is turned on
.../subresource_filter_content_settings_manager.cc | 5 ++++
...rce_filter_content_settings_manager_unittest.cc | 34 ++++++++++++++++++----
.../subresource_filter_unittest.cc | 2 +-
3 files changed, 35 insertions(+), 6 deletions(-)

Upstream: git.chromium.org


  • Share