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

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: rebase, more fix Created 6 years, 2 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 bdaa3f96e4e69a601c04cefcea135ed3dc2035c8..758999923f37786b51bc3b4da04d7d40dd90e857 100644
--- a/chrome/browser/resources/extensions/extension_list.js
+++ b/chrome/browser/resources/extensions/extension_list.js
@@ -46,6 +46,7 @@
* packagedApp: boolean,
* path: (string|undefined),
* prettifiedPath: (string|undefined),
+ * recommendedInstall: boolean,
* runtimeErrors: (Array.<RuntimeError>|undefined),
* suspiciousInstall: boolean,
* terminated: boolean,
@@ -170,6 +171,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');
}
@@ -395,7 +398,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) {
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/browser/ui/webui/extensions/extension_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698