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

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

Issue 9225053: Add a blocking version of the sync promo dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments 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/sync_promo/sync_promo_ui.h
diff --git a/chrome/browser/ui/webui/sync_promo/sync_promo_ui.h b/chrome/browser/ui/webui/sync_promo/sync_promo_ui.h
index ab932cc6358c1cd632fb0505f5f5a4be0a6e5786..65bd1867538c860fe7f1c2c6d298084fa7f275be 100644
--- a/chrome/browser/ui/webui/sync_promo/sync_promo_ui.h
+++ b/chrome/browser/ui/webui/sync_promo/sync_promo_ui.h
@@ -14,6 +14,15 @@ class PrefService;
// The Web UI handler for chrome://syncpromo.
class SyncPromoUI : public content::WebUIController {
public:
+ enum Version {
+ VERSION_DEFAULT = 0,
+ VERSION_DEVICES,
+ VERSION_VERBOSE,
+ VERSION_SIMPLE,
+ VERSION_DIALOG,
+ VERSION_COUNT,
+ };
+
// Constructs a SyncPromoUI.
explicit SyncPromoUI(content::WebUI* web_ui);
@@ -67,7 +76,7 @@ class SyncPromoUI : public content::WebUIController {
// Returns the version of the sync promo UI that we should display.
// Each version changes the UI slightly (for example, replacing text with
// an infographic).
- static int GetSyncPromoVersion();
+ static Version GetSyncPromoVersion();
private:
DISALLOW_COPY_AND_ASSIGN(SyncPromoUI);

Powered by Google App Engine
This is Rietveld 408576698