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

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

Issue 403593002: Improve messaging for shared modules on chrome://extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: show the list always Created 6 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
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 b3a8f29cc23c10157479827b2551a56ffac472db..050466574d5746cdeb94dbf8eacbb1c25a9b4f53 100644
--- a/chrome/browser/resources/extensions/extension_list.js
+++ b/chrome/browser/resources/extensions/extension_list.js
@@ -85,7 +85,7 @@ cr.define('options', function() {
if (!extension.enabled || extension.terminated)
node.classList.add('inactive-extension');
- if (extension.managedInstall) {
+ if (extension.managedInstall || extension.managedSharedModule) {
node.classList.add('may-not-modify');
node.classList.add('may-not-remove');
} else if (extension.suspiciousInstall || extension.corruptInstall) {
@@ -238,7 +238,8 @@ cr.define('options', function() {
enable.hidden = false;
var managedOrHosedExtension = extension.managedInstall ||
extension.suspiciousInstall ||
- extension.corruptInstall;
+ extension.corruptInstall ||
+ extension.managedSharedModule;
enable.querySelector('input').disabled = managedOrHosedExtension;
if (!managedOrHosedExtension) {
@@ -312,6 +313,17 @@ cr.define('options', function() {
}
}
+ if (extension.is_shared_module && extension.dependents.length > 0) {
not at google - send to devlin 2014/07/17 20:44:52 seems like this should be isSharedModule not is_sh
elijahtaylor1 2014/07/17 21:45:30 Hmm, this makes a lot of sense. We should never h
+ var sharedModule = node.querySelector('.shared-module-message');
+ sharedModule.hidden = false;
+ var sharedModuleList = sharedModule.querySelector('ul');
+ extension.dependents.forEach(function(id) {
+ var li = document.createElement('li');
+ li.innerText = id;
+ sharedModuleList.appendChild(li);
+ });
+ }
+
// Then active views.
if (extension.views.length > 0) {
var activeViews = node.querySelector('.active-views');

Powered by Google App Engine
This is Rietveld 408576698