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

Unified Diff: chrome/browser/ui/webui/ntp/app_launcher_handler.h

Issue 9116037: [NTP4] Make TilePage and CardSlider evented to simplify code and fix page switcher bug (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + event order change Created 8 years, 11 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/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_;

Powered by Google App Engine
This is Rietveld 408576698