| Index: chrome/common/extensions/extension.cc
|
| diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc
|
| index e9e3fc6fc5f1f5cf37e88aa7e935548d09e792fc..b8df3b02983e3d6e59daaf40108e4133d62f151a 100644
|
| --- a/chrome/common/extensions/extension.cc
|
| +++ b/chrome/common/extensions/extension.cc
|
| @@ -529,12 +529,17 @@ bool Extension::ShouldDisplayInExtensionSettings() const {
|
|
|
| // Don't show component extensions because they are only extensions as an
|
| // implementation detail of Chrome.
|
| +
|
| if (location() == Manifest::COMPONENT &&
|
| !CommandLine::ForCurrentProcess()->HasSwitch(
|
| switches::kShowComponentExtensionOptions)) {
|
| return false;
|
| }
|
|
|
| + // Don't show apps that aren't visible in either launcher or ntp.
|
| + if (is_app() && !ShouldDisplayInAppLauncher() && !ShouldDisplayInNewTabPage())
|
| + return false;
|
| +
|
| // Always show unpacked extensions and apps.
|
| if (Manifest::IsUnpackedLocation(location()))
|
| return true;
|
|
|