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

Unified Diff: chrome/browser/ui/app_list/apps_model_builder.cc

Issue 12207105: [win] Remove 'installing...' icons from the app list if the install fails. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac Created 7 years, 10 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/app_list/apps_model_builder.cc
diff --git a/chrome/browser/ui/app_list/apps_model_builder.cc b/chrome/browser/ui/app_list/apps_model_builder.cc
index 8af3d3ee664c2719c34657495721c972066ef692..24964100e0fd3e7ac990c4e7323cdf6ae54e0fa2 100644
--- a/chrome/browser/ui/app_list/apps_model_builder.cc
+++ b/chrome/browser/ui/app_list/apps_model_builder.cc
@@ -96,6 +96,13 @@ void AppsModelBuilder::OnDownloadProgress(const std::string& extension_id,
GetAppAt(i)->SetPercentDownloaded(percent_downloaded);
}
+void AppsModelBuilder::OnInstallFailure(const std::string& extension_id) {
+ int i = FindApp(extension_id);
+ if (i == -1)
+ return;
+ model_->DeleteAt(i);
+}
+
void AppsModelBuilder::AddApps(const ExtensionSet* extensions, Apps* apps) {
for (ExtensionSet::const_iterator app = extensions->begin();
app != extensions->end(); ++app) {
« no previous file with comments | « chrome/browser/ui/app_list/apps_model_builder.h ('k') | chrome/browser/ui/ash/app_list/app_list_controller_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698