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

Unified Diff: chrome/browser/ui/webui/sync_promo_ui.h

Issue 8093016: Show sync promo at startup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build error Created 9 years, 2 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/browser/ui/browser_init_browsertest.cc ('k') | chrome/browser/ui/webui/sync_promo_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/sync_promo_ui.h
diff --git a/chrome/browser/ui/webui/sync_promo_ui.h b/chrome/browser/ui/webui/sync_promo_ui.h
index 1e1f783166b2dc9808bc2a2864b3b6d98e94a3bf..491436997f052dd6f27aea3b55034e71328b4ad7 100644
--- a/chrome/browser/ui/webui/sync_promo_ui.h
+++ b/chrome/browser/ui/webui/sync_promo_ui.h
@@ -8,6 +8,8 @@
#include "chrome/browser/ui/webui/chrome_web_ui.h"
+class Profile;
+
// The Web UI handler for chrome://syncpromo.
class SyncPromoUI : public ChromeWebUI {
public:
@@ -18,6 +20,13 @@ class SyncPromoUI : public ChromeWebUI {
// Returns true if the sync promo should be visible.
static bool ShouldShowSyncPromo();
+ // Returns true if we should show the sync promo at startup.
+ static bool ShouldShowSyncPromoAtStartup(Profile* profile,
+ bool is_new_profile);
+ // Called when the sync promo has been shown so that we can keep track
+ // of the number of times we've displayed it.
+ static void DidShowSyncPromoAtStartup(Profile* profile);
+
private:
DISALLOW_COPY_AND_ASSIGN(SyncPromoUI);
};
« no previous file with comments | « chrome/browser/ui/browser_init_browsertest.cc ('k') | chrome/browser/ui/webui/sync_promo_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698