| Index: chrome/browser/resources/extensions/extension_list.js
|
| diff --git a/chrome/browser/resources/extensions/extension_list.js b/chrome/browser/resources/extensions/extension_list.js
|
| index 73b9b950cf25123f667b39a6f01704d2a3d95c8d..979bfcf78c8d5a8b907daefbd7f95f9d75a757e7 100644
|
| --- a/chrome/browser/resources/extensions/extension_list.js
|
| +++ b/chrome/browser/resources/extensions/extension_list.js
|
| @@ -172,12 +172,17 @@ cr.define('extensions', function() {
|
| /**
|
| * Indicates whether an uninstall dialog is being shown to prevent multiple
|
| * dialogs from being displayed.
|
| - * @type {boolean}
|
| - * @private
|
| + * @private {boolean}
|
| */
|
| uninstallIsShowing_: false,
|
|
|
| /**
|
| + * Indicates whether a permissions prompt is showing.
|
| + * @private {boolean}
|
| + */
|
| + permissionsPromptIsShowing_: false,
|
| +
|
| + /**
|
| * Necessary to only show the butterbar once.
|
| * @private {boolean}
|
| */
|
| @@ -375,7 +380,13 @@ cr.define('extensions', function() {
|
|
|
| // The 'Permissions' link.
|
| row.setupColumn('.permissions-link', 'details', 'click', function(e) {
|
| - chrome.send('extensionSettingsPermissions', [extension.id]);
|
| + if (!this.permissionsPromptIsShowing_) {
|
| + chrome.developerPrivate.showPermissionsDialog(extension.id,
|
| + function() {
|
| + this.permissionsPromptIsShowing_ = false;
|
| + }.bind(this));
|
| + this.permissionsPromptIsShowing_ = true;
|
| + }
|
| e.preventDefault();
|
| });
|
|
|
|
|