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/ui/webui/ntp/app_launcher_handler.cc

Issue 23935004: Preserve the app in the AppLauncherHandler if it's disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tiny change for consistency Created 7 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/ntp/app_launcher_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
index 352809311787d6e8bf223c43c513575224b661e3..a6b747faaf495a1be9a01813fc77c2ad6326d9ba 100644
--- a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
+++ b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
@@ -295,7 +295,8 @@ void AppLauncherHandler::Observe(int type,
scoped_ptr<DictionaryValue> app_info(GetAppInfo(extension));
if (app_info.get()) {
- visible_apps_.erase(extension->id());
+ if (uninstalled)
+ visible_apps_.erase(extension->id());
scoped_ptr<base::FundamentalValue> uninstall_value(
Value::CreateBooleanValue(uninstalled));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698