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

Unified Diff: chrome/browser/ui/webui/sync_promo/sync_promo_handler2.cc

Issue 9730021: Remove experimental sync promo layouts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: a Created 8 years, 9 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_handler2.cc
diff --git a/chrome/browser/ui/webui/sync_promo/sync_promo_handler2.cc b/chrome/browser/ui/webui/sync_promo/sync_promo_handler2.cc
index f1b316a203476365445f8d22848920c0e5f02066..fdc5c88661d2fc7520c81a2f17c5120e43348ed5 100644
--- a/chrome/browser/ui/webui/sync_promo/sync_promo_handler2.cc
+++ b/chrome/browser/ui/webui/sync_promo/sync_promo_handler2.cc
@@ -208,27 +208,9 @@ void SyncPromoHandler2::HandleCloseSyncPromo(const base::ListValue* args) {
}
}
-int SyncPromoHandler2::GetPromoVersion() {
- switch (SyncPromoUI::GetSyncPromoVersion()) {
- case SyncPromoUI::VERSION_DEFAULT:
- return 0;
- case SyncPromoUI::VERSION_DEVICES:
- return 1;
- case SyncPromoUI::VERSION_VERBOSE:
- return 2;
- case SyncPromoUI::VERSION_SIMPLE:
- return 3;
- case SyncPromoUI::VERSION_DIALOG:
- // Use the simple sync promo layout for the dialog version.
- return 3;
- default:
- NOTREACHED();
- return 0;
- }
-}
-
void SyncPromoHandler2::HandleInitializeSyncPromo(const base::ListValue* args) {
- base::FundamentalValue version(GetPromoVersion());
+ // TODO(sail): The version argument is going away, remove this.
+ base::FundamentalValue version(3);
web_ui_->CallJavascriptFunction("SyncSetupOverlay.showPromoVersion",
version);

Powered by Google App Engine
This is Rietveld 408576698