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

Unified Diff: chrome/common/extensions/extension.cc

Issue 15612002: Make sure the google wallet in-app payment support app is always installed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change logic to decide which apps to show in chrome://extensions Created 7 years, 7 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/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;

Powered by Google App Engine
This is Rietveld 408576698