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

Issue 1071713004: Enable NPAPI if policy has plugin policies. (Closed)

Created:
5 years, 8 months ago by Will Harris
Modified:
5 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable NPAPI if policy has plugin policies. BUG=472648 TEST=manual - verify that NPAPI plugins appear in chrome://plugins when either a machine or user plugin policy is set. Committed: https://crrev.com/26d09db19381c2236a2890c045761465c78bc958 Cr-Commit-Position: refs/heads/master@{#324754}

Patch Set 1 #

Patch Set 2 : win and mac only #

Total comments: 1

Patch Set 3 : wire up to policy handler #

Patch Set 4 : add missing files #

Total comments: 6

Patch Set 5 : code review changes #

Total comments: 3

Patch Set 6 : nits and rename #

Patch Set 7 : fix GN #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -34 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/browser/plugins/enable_npapi_plugins_policy_handler.h View 1 2 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/plugins/enable_npapi_plugins_policy_handler.cc View 1 2 3 4 5 1 chunk +46 lines, -0 lines 0 comments Download
M chrome/browser/plugins/plugin_prefs.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/plugins/plugin_prefs.cc View 1 2 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/plugins/plugin_prefs_factory.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/policy/chrome_browser_policy_connector.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/policy/chrome_browser_policy_connector.cc View 1 2 2 chunks +0 lines, -26 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list_factory.cc View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/plugin_service_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/plugin_service_impl.cc View 2 chunks +9 lines, -1 line 0 comments Download
M content/public/browser/plugin_service.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/fake_plugin_service.h View 1 chunk +1 line, -1 line 0 comments Download
M content/test/fake_plugin_service.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (5 generated)
Will Harris
atwilson - am I wiring the profile policy parts into the right place here?
5 years, 8 months ago (2015-04-09 01:08:16 UTC) #2
Andrew T Wilson (Slow)
+mnissler for a second set of eyes.
5 years, 8 months ago (2015-04-09 08:44:42 UTC) #4
Mattias Nissler (ping if slow)
https://codereview.chromium.org/1071713004/diff/20001/chrome/browser/policy/profile_policy_connector.cc File chrome/browser/policy/profile_policy_connector.cc (right): https://codereview.chromium.org/1071713004/diff/20001/chrome/browser/policy/profile_policy_connector.cc#newcode143 chrome/browser/policy/profile_policy_connector.cc:143: void ProfilePolicyConnector::EnableNPAPIIfRequired() { The canonical way to do this ...
5 years, 8 months ago (2015-04-09 17:15:02 UTC) #5
Will Harris
Done - PTAL. mnissler -> chrome/browser/policy bauerb -> chrome/browser/plugins jam -> content/
5 years, 8 months ago (2015-04-09 20:32:37 UTC) #7
jam
lgtm
5 years, 8 months ago (2015-04-10 00:19:39 UTC) #8
Bernhard Bauer
lgtm
5 years, 8 months ago (2015-04-10 08:07:03 UTC) #9
Mattias Nissler (ping if slow)
https://codereview.chromium.org/1071713004/diff/60001/chrome/browser/plugins/plugin_policy_handler.cc File chrome/browser/plugins/plugin_policy_handler.cc (right): https://codereview.chromium.org/1071713004/diff/60001/chrome/browser/plugins/plugin_policy_handler.cc#newcode33 chrome/browser/plugins/plugin_policy_handler.cc:33: prefs->SetBoolean(prefs::kEnableNpapi, true); You have multiple instances of this policy ...
5 years, 8 months ago (2015-04-10 08:47:15 UTC) #10
Will Harris
mnissler PTAL https://codereview.chromium.org/1071713004/diff/60001/chrome/browser/plugins/plugin_policy_handler.cc File chrome/browser/plugins/plugin_policy_handler.cc (right): https://codereview.chromium.org/1071713004/diff/60001/chrome/browser/plugins/plugin_policy_handler.cc#newcode33 chrome/browser/plugins/plugin_policy_handler.cc:33: prefs->SetBoolean(prefs::kEnableNpapi, true); On 2015/04/10 08:47:15, Mattias Nissler ...
5 years, 8 months ago (2015-04-10 18:51:23 UTC) #11
Mattias Nissler (ping if slow)
LGTM w/ nits. https://codereview.chromium.org/1071713004/diff/80001/chrome/browser/plugins/plugin_policy_handler.h File chrome/browser/plugins/plugin_policy_handler.h (right): https://codereview.chromium.org/1071713004/diff/80001/chrome/browser/plugins/plugin_policy_handler.h#newcode18 chrome/browser/plugins/plugin_policy_handler.h:18: class PluginPolicyHandler : public ConfigurationPolicyHandler { ...
5 years, 8 months ago (2015-04-10 19:22:45 UTC) #12
Will Harris
Can't reply inline as rietveld appears to be having issues, but all comments have been ...
5 years, 8 months ago (2015-04-10 19:52:36 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1071713004/120001
5 years, 8 months ago (2015-04-10 22:44:27 UTC) #16
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 8 months ago (2015-04-11 02:24:13 UTC) #17
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/26d09db19381c2236a2890c045761465c78bc958 Cr-Commit-Position: refs/heads/master@{#324754}
5 years, 8 months ago (2015-04-11 02:25:10 UTC) #18
Andrew T Wilson (Slow)
5 years, 8 months ago (2015-04-13 13:55:38 UTC) #19
Message was sent while issue was closed.
On 2015/04/11 02:25:10, I haz the power (commit-bot) wrote:
> Patchset 7 (id:??) landed as
> https://crrev.com/26d09db19381c2236a2890c045761465c78bc958
> Cr-Commit-Position: refs/heads/master@{#324754}

Retroactive LGTM :)

Powered by Google App Engine
This is Rietveld 408576698