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

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: nits and owners 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
« no previous file with comments | « chrome/browser/resources/plugins.html ('k') | chrome/browser/ui/webui/plugins/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+}
+
+/**
* Helper to convert callback-based define() API to a promise-based API.
* @param {!Array<string>} moduleNames
* @return {!Promise}
« no previous file with comments | « chrome/browser/resources/plugins.html ('k') | chrome/browser/ui/webui/plugins/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698