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

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

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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/extension_icon_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 155af6c78b7e40825ce1b50951ed4c5918996d7d..63cbdd20bb9723fd0b3bc2aac2d6dd5ea85624e1 100644
--- a/chrome/browser/automation/automation_provider_observers.cc
+++ b/chrome/browser/automation/automation_provider_observers.cc
@@ -2064,6 +2064,17 @@ NTPInfoObserver::NTPInfoObserver(
apps_list->Append(*app);
}
delete disabled_apps;
+ // Process terminated extensions.
+ const ExtensionList* terminated_extensions =
+ ext_service->terminated_extensions();
+ std::vector<DictionaryValue*>* terminated_apps = GetAppInfoFromExtensions(
+ terminated_extensions, ext_service);
+ for (std::vector<DictionaryValue*>::const_iterator app =
+ terminated_apps->begin(); app != terminated_apps->end(); ++app) {
+ (*app)->SetBoolean("is_disabled", true);
+ apps_list->Append(*app);
+ }
+ delete terminated_apps;
ntp_info_->Set("apps", apps_list);
// Get the info that would be displayed in the recently closed section.
« no previous file with comments | « no previous file | chrome/browser/ui/webui/extension_icon_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698