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

Unified Diff: chrome/browser/dom_ui/app_launcher_handler.h

Issue 6162006: Changes to default apps promo per ui leads: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 9 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/dom_ui/app_launcher_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/app_launcher_handler.h
diff --git a/chrome/browser/dom_ui/app_launcher_handler.h b/chrome/browser/dom_ui/app_launcher_handler.h
index 5f946d915c7c5d6bd369c0d27205fe998c9ea743..4940752a514b5010fdfef3c34836643384be0cf2 100644
--- a/chrome/browser/dom_ui/app_launcher_handler.h
+++ b/chrome/browser/dom_ui/app_launcher_handler.h
@@ -18,6 +18,7 @@ class ExtensionPrefs;
class ExtensionService;
class NotificationRegistrar;
class PrefChangeRegistrar;
+class Profile;
namespace gfx {
class Rect;
@@ -38,7 +39,7 @@ class AppLauncherHandler
DictionaryValue* value);
// Callback for pings related to launching apps on the NTP.
- static bool HandlePing(const std::string& path);
+ static bool HandlePing(Profile* profile, const std::string& path);
// DOMMessageHandler implementation.
virtual DOMMessageHandler* Attach(DOMUI* dom_ui);
@@ -91,6 +92,9 @@ class AppLauncherHandler
// Starts the animation of the app icon.
void AnimateAppIcon(const Extension* extension, const gfx::Rect& rect);
+ // Helper that uninstalls all the default apps.
+ void UninstallDefaultApps();
+
// The apps are represented in the extensions model.
scoped_refptr<ExtensionService> extensions_service_;
@@ -111,6 +115,10 @@ class AppLauncherHandler
// Whether the promo is currently being shown.
bool promo_active_;
+ // When true, we ignore changes to the underlying data rather than immediately
+ // refreshing. This is useful when making many batch updates to avoid flicker.
+ bool ignore_changes_;
+
DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler);
};
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/dom_ui/app_launcher_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698