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

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

Issue 12094034: Add a link (to view Permissions) to the Extension details on chrome://extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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
===================================================================
--- chrome/browser/resources/extensions/extension_list.js (revision 179321)
+++ chrome/browser/resources/extensions/extension_list.js (working copy)
@@ -150,7 +150,7 @@
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 @@
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