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

Issue 2150323003: Disallow user overrides to enterprise policy for plugins. (Closed)

Created:
4 years, 5 months ago by Will Harris
Modified:
4 years, 5 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, arv+watch_chromium.org, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disallow user overrides to enterprise policy for plugins. This CL changes the code in two places: Firstly, in the actual plugin loading logic, in PluginInfoMessageFilter::Context::GetPluginContentSetting there was previously an exception for CONTENT_SETTING_ASK which meant that it could override enterprise policy. Secondly, in the UI, this disables the tick box to "Always allowed to run" on chrome://plugins when enterprise policy is CONTENT_SETTING_ASK (3). BUG=616218 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/9610a5e34ea06ea1c9067f72224a62658620108c Cr-Commit-Position: refs/heads/master@{#406197}

Patch Set 1 #

Total comments: 4

Patch Set 2 : nits and owners #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -9 lines) Patch
M chrome/browser/plugins/plugin_info_message_filter.cc View 1 1 chunk +3 lines, -8 lines 0 comments Download
M chrome/browser/resources/plugins.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/plugins.js View 1 chunk +11 lines, -0 lines 0 comments Download
A + chrome/browser/ui/webui/plugins/OWNERS View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/browser/ui/webui/plugins/plugins.mojom View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/plugins/plugins_handler.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/plugins/plugins_handler.cc View 2 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 17 (8 generated)
Will Harris
PTAL tommycli -> because I'm changing your logic a bit bauerb -> everything else.
4 years, 5 months ago (2016-07-18 20:55:36 UTC) #5
Bernhard Bauer
lgtm https://codereview.chromium.org/2150323003/diff/1/chrome/browser/resources/plugins.js File chrome/browser/resources/plugins.js (right): https://codereview.chromium.org/2150323003/diff/1/chrome/browser/resources/plugins.js#newcode261 chrome/browser/resources/plugins.js:261: return plugin.policy_click_to_play == true; Nit: Really, the == ...
4 years, 5 months ago (2016-07-18 21:57:57 UTC) #6
Will Harris
https://codereview.chromium.org/2150323003/diff/1/chrome/browser/resources/plugins.js File chrome/browser/resources/plugins.js (right): https://codereview.chromium.org/2150323003/diff/1/chrome/browser/resources/plugins.js#newcode261 chrome/browser/resources/plugins.js:261: return plugin.policy_click_to_play == true; On 2016/07/18 21:57:57, Bernhard Bauer ...
4 years, 5 months ago (2016-07-18 22:02:41 UTC) #7
tommycli
lgtm sans nit https://codereview.chromium.org/2150323003/diff/1/chrome/browser/plugins/plugin_info_message_filter.cc File chrome/browser/plugins/plugin_info_message_filter.cc (right): https://codereview.chromium.org/2150323003/diff/1/chrome/browser/plugins/plugin_info_message_filter.cc#newcode495 chrome/browser/plugins/plugin_info_message_filter.cc:495: general_info.source == content_settings::SETTING_SOURCE_POLICY; nit: since we ...
4 years, 5 months ago (2016-07-18 22:33:16 UTC) #8
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/2150323003/20001
4 years, 5 months ago (2016-07-18 23:08:35 UTC) #11
Will Harris
thanks for review https://codereview.chromium.org/2150323003/diff/1/chrome/browser/plugins/plugin_info_message_filter.cc File chrome/browser/plugins/plugin_info_message_filter.cc (right): https://codereview.chromium.org/2150323003/diff/1/chrome/browser/plugins/plugin_info_message_filter.cc#newcode495 chrome/browser/plugins/plugin_info_message_filter.cc:495: general_info.source == content_settings::SETTING_SOURCE_POLICY; On 2016/07/18 22:33:16, ...
4 years, 5 months ago (2016-07-19 02:13:49 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-19 02:58:35 UTC) #14
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-19 02:58:39 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-07-19 03:00:06 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9610a5e34ea06ea1c9067f72224a62658620108c
Cr-Commit-Position: refs/heads/master@{#406197}

Powered by Google App Engine
This is Rietveld 408576698