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 4f32ad9b377e8bdb907e9595fd112bf8036eaea5..1d9b4b1336ec2b805c974c206c370dc920d4a735 100644 |
--- a/chrome/browser/ui/webui/ntp/app_launcher_handler.h |
+++ b/chrome/browser/ui/webui/ntp/app_launcher_handler.h |
@@ -123,6 +123,9 @@ class AppLauncherHandler : public content::WebUIMessageHandler, |
StringOrdinal page_ordinal; |
}; |
+ // Reset some instance flags we use to track the currently uninstalling app. |
+ void CleanupAfterUninstall(); |
+ |
// Records a web store launch in the appropriate histograms. |promo_active| |
// specifies if the web store promotion was active. |
static void RecordWebStoreLaunch(bool promo_active); |
@@ -202,6 +205,11 @@ class AppLauncherHandler : public content::WebUIMessageHandler, |
// when the app is added to the page (via getAppsCallback or appAdded). |
std::string highlight_app_id_; |
+ // Used to determine if the current instance of AppLauncherHandler called |
+ // ExtensionUninstallAccepted(). If the current one was the one that called |
+ // this, we use this value to animate the removal on the attached NTP. |
+ bool uninstall_from_page_; |
+ |
// Hold state for favicon requests. |
CancelableRequestConsumerTSimple<AppInstallInfo*> favicon_consumer_; |