| 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);
|
|
|
|
|