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

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

Issue 536753003: Add recommended extension installation support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext-3
Patch Set: add ui changes Created 6 years, 3 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 12a0d4b73339a6f57a5b44e83d1e45f5b2f00026..e0debe03346535a96a49a967dca1d9c39f5b2eb6 100644
--- a/chrome/browser/resources/extensions/extension_list.js
+++ b/chrome/browser/resources/extensions/extension_list.js
@@ -36,6 +36,7 @@
* kioskOnly: boolean,
* locationText: string,
* managedInstall: boolean,
+ * recommendedInstall: boolean,
* manifestErrors: (Array.<RuntimeError>|undefined),
* name: string,
* offlineEnabled: boolean,
@@ -168,6 +169,8 @@ cr.define('options', function() {
extension.dependentExtensions.length > 0) {
node.classList.add('may-not-modify');
node.classList.add('may-not-remove');
+ } else if (extension.recommendedInstall) {
+ node.classList.add('may-not-remove');
} else if (extension.suspiciousInstall || extension.corruptInstall) {
node.classList.add('may-not-modify');
}
@@ -387,7 +390,7 @@ cr.define('options', function() {
}
// Then the 'managed, cannot uninstall/disable' message.
- if (extension.managedInstall) {
+ if (extension.managedInstall || extension.recommendedInstall) {
node.querySelector('.managed-message').hidden = false;
} else {
if (extension.suspiciousInstall) {

Powered by Google App Engine
This is Rietveld 408576698