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

Unified Diff: chrome/browser/resources/plugins.js

Issue 2150323003: Disallow user overrides to enterprise policy for plugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/plugins.js
diff --git a/chrome/browser/resources/plugins.js b/chrome/browser/resources/plugins.js
index 05e13897d869701a02cae1e9aa903362641f05a6..b68038d2863d7890634a83af5c96d1181098951d 100644
--- a/chrome/browser/resources/plugins.js
+++ b/chrome/browser/resources/plugins.js
@@ -251,6 +251,17 @@ function isPluginTrusted(plugin) {
}
/**
+ * @param {Object} plugin An object containing the information about a plugin.
+ * See returnPluginsData() for the format of this object.
+ * @return {boolean} Whether the plugin is marked click to play by policy.
+ *
+ * This would normally be set by setting the policy DefaultPluginsSetting to 3.
+ */
+function isPluginPolicyClickToPlay(plugin) {
+ return plugin.policy_click_to_play == true;
Bernhard Bauer 2016/07/18 21:57:57 Nit: Really, the == true is a bit overkill if we k
Will Harris 2016/07/18 22:02:41 Ack. I was just sticking with the convention in al
+}
+
+/**
* Helper to convert callback-based define() API to a promise-based API.
* @param {!Array<string>} moduleNames
* @return {!Promise}

Powered by Google App Engine
This is Rietveld 408576698