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

Unified Diff: chrome/browser/resources/extensions/extension_list.js

Issue 12212195: Re-land "view permission" feature (r179916) with Mac Fix. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac Fix Integrated Created 7 years, 10 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/extensions/extension_list.js
diff --git a/chrome/browser/resources/extensions/extension_list.js b/chrome/browser/resources/extensions/extension_list.js
index 95240248fe4603ca49ce3603073600db7b18e494..ddf6d215637018c9368dd0e2a307b7f06735f861 100644
--- a/chrome/browser/resources/extensions/extension_list.js
+++ b/chrome/browser/resources/extensions/extension_list.js
@@ -150,7 +150,7 @@ cr.define('options', function() {
fileAccess.hidden = false;
}
- // The 'Options' checkbox.
+ // The 'Options' link.
if (extension.enabled && extension.optionsUrl) {
var options = node.querySelector('.options-link');
options.addEventListener('click', function(e) {
@@ -160,6 +160,13 @@ cr.define('options', function() {
options.hidden = false;
}
+ // The 'Permissions' link.
+ var permissions = node.querySelector('.permissions-link');
+ permissions.addEventListener('click', function(e) {
+ chrome.send('extensionSettingsPermissions', [extension.id]);
+ e.preventDefault();
+ });
+
if (extension.allow_activity) {
var activity = node.querySelector('.activity-link');
activity.addEventListener('click', function(e) {
« no previous file with comments | « chrome/browser/extensions/extension_install_prompt.cc ('k') | chrome/browser/resources/extensions/extensions.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698