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

Issue 2168453002: [HBD] Don't advertise Flash if Content Setting is on CONTENT_SETTING_BLOCK (Closed)

Created:
4 years, 5 months ago by trizzofo
Modified:
4 years, 5 months ago
CC:
chromium-reviews, jam, groby-ooo-7-16, Lei Zhang
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[HBD] Don't advertise Flash if Content Setting is on CONTENT_SETTING_BLOCK When PreferHtmlOverPlugins feature is enabled, fetch Content Settings and don't advertise Flash if it's on CONTENT_SETTING_BLOCK. This will only work properly when plugin caches are disabled in future CLs. Here is more information about HTML5 by Default: https://docs.google.com/document/d/1iHhg7wxYTgBHsTzcfaZy36UJ33JmjRLro8TZR6lb0ss BUG=626728 Committed: https://crrev.com/a5a2bb3171707315ef1e2737edc4677985ca453c Cr-Commit-Position: refs/heads/master@{#407514}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address issues mentioned in comments #

Total comments: 6

Patch Set 3 : Use auto #

Total comments: 4

Patch Set 4 : Changes pointed in comments #

Patch Set 5 : Endlines and temporary PluginPrefs pointer removed #

Total comments: 1

Patch Set 6 : Test fix #

Patch Set 7 : std::move and format #

Patch Set 8 : Compilation error fix #

Patch Set 9 : Fix Windows compilation error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -19 lines) Patch
M chrome/browser/plugins/chrome_plugin_service_filter.h View 1 2 3 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/plugins/chrome_plugin_service_filter.cc View 1 2 3 4 5 6 3 chunks +25 lines, -14 lines 0 comments Download
M chrome/browser/printing/print_preview_dialog_controller_browsertest.cc View 1 2 3 4 5 6 7 8 5 chunks +16 lines, -3 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 51 (31 generated)
trizzofo
tommycli, PTAL
4 years, 5 months ago (2016-07-19 23:10:04 UTC) #5
tommycli
https://codereview.chromium.org/2168453002/diff/1/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2168453002/diff/1/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode131 chrome/browser/plugins/chrome_plugin_service_filter.cc:131: if (host_content_settings_map_it == host_content_settings_maps_.end()) I wonder if this can ...
4 years, 5 months ago (2016-07-19 23:32:51 UTC) #6
tommycli
https://codereview.chromium.org/2168453002/diff/1/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2168453002/diff/1/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode134 chrome/browser/plugins/chrome_plugin_service_filter.cc:134: ContentSetting content_setting = Also it would be good to ...
4 years, 5 months ago (2016-07-19 23:37:47 UTC) #7
trizzofo
https://codereview.chromium.org/2168453002/diff/1/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2168453002/diff/1/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode131 chrome/browser/plugins/chrome_plugin_service_filter.cc:131: if (host_content_settings_map_it == host_content_settings_maps_.end()) On 2016/07/19 23:32:51, tommycli wrote: ...
4 years, 5 months ago (2016-07-19 23:59:21 UTC) #8
tommycli
lgtm
4 years, 5 months ago (2016-07-20 00:07:13 UTC) #11
trizzofo
bauerb PTAL. Also, PTAL at the comment in chrome_plugin_service_filter.cc. Thanks! https://codereview.chromium.org/2168453002/diff/20001/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2168453002/diff/20001/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode130 ...
4 years, 5 months ago (2016-07-20 00:38:52 UTC) #13
groby-ooo-7-16
Apologies, I have a tiny drive-by comment :) https://codereview.chromium.org/2168453002/diff/20001/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2168453002/diff/20001/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode126 chrome/browser/plugins/chrome_plugin_service_filter.cc:126: std::map<const ...
4 years, 5 months ago (2016-07-20 01:11:49 UTC) #15
trizzofo
https://codereview.chromium.org/2168453002/diff/20001/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2168453002/diff/20001/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode126 chrome/browser/plugins/chrome_plugin_service_filter.cc:126: std::map<const void*, scoped_refptr<HostContentSettingsMap>>::iterator On 2016/07/20 01:11:49, groby wrote: > ...
4 years, 5 months ago (2016-07-20 01:26:59 UTC) #16
Bernhard Bauer
LGTM with some nits/suggestions: https://codereview.chromium.org/2168453002/diff/20001/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2168453002/diff/20001/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode130 chrome/browser/plugins/chrome_plugin_service_filter.cc:130: if (host_content_settings_map_it == host_content_settings_maps_.end()) On ...
4 years, 5 months ago (2016-07-20 08:41:32 UTC) #17
tommycli
https://codereview.chromium.org/2168453002/diff/20001/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2168453002/diff/20001/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode130 chrome/browser/plugins/chrome_plugin_service_filter.cc:130: if (host_content_settings_map_it == host_content_settings_maps_.end()) On 2016/07/20 08:41:32, Bernhard Bauer ...
4 years, 5 months ago (2016-07-20 15:35:27 UTC) #18
trizzofo
https://codereview.chromium.org/2168453002/diff/20001/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2168453002/diff/20001/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode130 chrome/browser/plugins/chrome_plugin_service_filter.cc:130: if (host_content_settings_map_it == host_content_settings_maps_.end()) On 2016/07/20 15:35:27, tommycli wrote: ...
4 years, 5 months ago (2016-07-20 18:10:40 UTC) #21
Bernhard Bauer
https://codereview.chromium.org/2168453002/diff/80001/chrome/browser/plugins/chrome_plugin_service_filter.cc File chrome/browser/plugins/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/2168453002/diff/80001/chrome/browser/plugins/chrome_plugin_service_filter.cc#newcode65 chrome/browser/plugins/chrome_plugin_service_filter.cc:65: plugin_prefs_[context] = plugin_prefs; Nit: std::move the scoped_refptrs so you ...
4 years, 5 months ago (2016-07-21 09:10:02 UTC) #26
Bernhard Bauer
(Still LGTM otherwise tho')
4 years, 5 months ago (2016-07-21 09:10:21 UTC) #27
Lei Zhang
There's red bots with the print preview test. I guess you should fix that and ...
4 years, 5 months ago (2016-07-22 00:40:27 UTC) #29
trizzofo
On 2016/07/22 00:40:27, Lei Zhang wrote: > There's red bots with the print preview test. ...
4 years, 5 months ago (2016-07-22 00:48:17 UTC) #30
trizzofo
Lei Zhang, PTAL at the browsertest file. Before my changes, the IsPluginAvailable method returned false ...
4 years, 5 months ago (2016-07-22 23:34:25 UTC) #41
Lei Zhang
lgtm
4 years, 5 months ago (2016-07-23 04:59:29 UTC) #44
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/2168453002/160001
4 years, 5 months ago (2016-07-25 17:19:30 UTC) #47
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 5 months ago (2016-07-25 18:10:38 UTC) #49
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 18:14:53 UTC) #51
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/a5a2bb3171707315ef1e2737edc4677985ca453c
Cr-Commit-Position: refs/heads/master@{#407514}

Powered by Google App Engine
This is Rietveld 408576698