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

Unified Diff: extensions/common/extension.cc

Issue 68173031: Added enhanced bookmarks extension as an external component extension (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 1 month 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: extensions/common/extension.cc
diff --git a/extensions/common/extension.cc b/extensions/common/extension.cc
index f38d547a0f322301e78f7b629fe64c5a1e4c07b5..aef22cc036ccfbd3a115662c4a8d89b77e184f43 100644
--- a/extensions/common/extension.cc
+++ b/extensions/common/extension.cc
@@ -368,9 +368,10 @@ bool Extension::ShouldDisplayInExtensionSettings() const {
bool Extension::ShouldNotBeVisible() const {
// Don't show component extensions because they are only extensions as an
// implementation detail of Chrome.
- if (location() == Manifest::COMPONENT &&
+ if ((location() == Manifest::COMPONENT ||
+ location() == Manifest::EXTERNAL_COMPONENT) &&
!CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kShowComponentExtensionOptions)) {
+ switches::kShowComponentExtensionOptions)) {
return true;
}
« chrome/common/chrome_switches.cc ('K') | « chrome/common/extensions/api/_permission_features.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698