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

Unified Diff: chrome/browser/automation/automation_provider_observers.cc

Issue 7517019: 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/automation/automation_provider_observers.cc
diff --git a/chrome/browser/automation/automation_provider_observers.cc b/chrome/browser/automation/automation_provider_observers.cc
index d1e434f9b2b9dc5d5eb3335f07fd6bc41ffd3dbd..095d08f819e0bb9eafbfa98b2b74b0e59b9f2b60 100644
--- a/chrome/browser/automation/automation_provider_observers.cc
+++ b/chrome/browser/automation/automation_provider_observers.cc
@@ -1979,8 +1979,10 @@ std::vector<DictionaryValue*>* GetAppInfoFromExtensions(
ext != extensions->end(); ++ext) {
// Only return information about extensions that are actually apps.
if ((*ext)->is_app()) {
- DictionaryValue* app_info = new DictionaryValue();
- AppLauncherHandler::CreateAppInfo(*ext, NULL, ext_service, app_info);
+ DictionaryValue* app_info =
+ AppLauncherHandler::CreateAppInfo(*ext, NULL, ext_service);
+ if (!app_info)
+ continue;
app_info->SetBoolean("is_component_extension",
(*ext)->location() == Extension::COMPONENT);
« no previous file with comments | « no previous file | chrome/browser/ui/webui/extension_icon_source.cc » ('j') | chrome/browser/ui/webui/ntp/app_launcher_handler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698