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

Unified Diff: chrome/browser/ui/webui/ntp/app_launcher_handler.h

Issue 7542027: Reland 'Show crashed apps on NTP, desaturated. Click to reload.' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 5 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/ui/webui/ntp/app_launcher_handler.h
diff --git a/chrome/browser/ui/webui/ntp/app_launcher_handler.h b/chrome/browser/ui/webui/ntp/app_launcher_handler.h
index 7d6305c53ae66fdee13ae3f84bb89bb214b12046..5801f6fba175c8367b768e3816a0576e48ce43de 100644
--- a/chrome/browser/ui/webui/ntp/app_launcher_handler.h
+++ b/chrome/browser/ui/webui/ntp/app_launcher_handler.h
@@ -40,11 +40,16 @@ class AppLauncherHandler : public WebUIMessageHandler,
explicit AppLauncherHandler(ExtensionService* extension_service);
virtual ~AppLauncherHandler();
+ // Whether the app should be excluded from the "apps" list because
+ // it is special (such as the Web Store app).
+ static bool IsAppExcludedFromList(const Extension* extension);
+
// Populate a dictionary with the information from an extension.
- static void CreateAppInfo(const Extension* extension,
- const AppNotification* notification,
- ExtensionService* service,
- base::DictionaryValue* value);
+ static void CreateAppInfo(
+ const Extension* extension,
+ const AppNotification* notification,
+ ExtensionService* service,
+ base::DictionaryValue* value);
// Callback for pings related to launching apps on the NTP.
static bool HandlePing(Profile* profile, const std::string& path);
@@ -148,8 +153,8 @@ class AppLauncherHandler : public WebUIMessageHandler,
history::FaviconData data);
// The apps are represented in the extensions model, which
- // outlives us since its owned by our containing profile.
- ExtensionService* const extensions_service_;
+ // outlives us since it's owned by our containing profile.
+ ExtensionService* const extension_service_;
// We monitor changes to the extension system so that we can reload the apps
// when necessary.
« no previous file with comments | « chrome/browser/ui/webui/extension_icon_source.cc ('k') | chrome/browser/ui/webui/ntp/app_launcher_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698