Index: chrome/common/extensions/extension.cc |
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc |
index e9e3fc6fc5f1f5cf37e88aa7e935548d09e792fc..4821c2b0324e8e9d57b3751cc650e39414ccb375 100644 |
--- a/chrome/common/extensions/extension.cc |
+++ b/chrome/common/extensions/extension.cc |
@@ -539,6 +539,10 @@ bool Extension::ShouldDisplayInExtensionSettings() const { |
if (Manifest::IsUnpackedLocation(location())) |
return true; |
+ // Don't show apps that aren't visible in either launcher or ntp. |
+ if (is_app() && !ShouldDisplayInAppLauncher() && !ShouldDisplayInNewTabPage()) |
+ return false; |
+ |
// Unless they are unpacked, never show hosted apps. Note: We intentionally |
// show packaged apps and platform apps because there are some pieces of |
// functionality that are only available in chrome://extensions/ but which |