summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/plugins.js
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/resources/plugins.js')
-rw-r--r--chromium/chrome/browser/resources/plugins.js15
1 files changed, 1 insertions, 14 deletions
diff --git a/chromium/chrome/browser/resources/plugins.js b/chromium/chrome/browser/resources/plugins.js
index 8c8bccee1d4..90d6e88816a 100644
--- a/chromium/chrome/browser/resources/plugins.js
+++ b/chromium/chrome/browser/resources/plugins.js
@@ -77,7 +77,7 @@ function loadShowDetailsFromPrefs(showDetails) {
* type: 'BROWSER PLUGIN',
* mime_types: [
* {
- * description: 'New Guy Media',
+ * description: 'New Media Type',
* file_extensions: ['mfp'],
* mime_type: 'application/x-my-first'
* },
@@ -261,19 +261,6 @@ 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}
- */
-function importModules(moduleNames) {
- return new Promise(function(resolve, reject) {
- define(moduleNames, function(var_args) {
- resolve(Array.prototype.slice.call(arguments, 0));
- });
- });
-}
-
// NOTE: Need to keep a global reference to the |pageImpl| such that it is not
// garbage collected, which causes the pipe to close and future calls from C++
// to JS to get dropped. This also allows tests to make direct calls on it.