summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/sync_promo/sync_promo.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/resources/sync_promo/sync_promo.js')
-rw-r--r--chrome/browser/resources/sync_promo/sync_promo.js31
1 files changed, 15 insertions, 16 deletions
diff --git a/chrome/browser/resources/sync_promo/sync_promo.js b/chrome/browser/resources/sync_promo/sync_promo.js
index 7315874..9d2f459 100644
--- a/chrome/browser/resources/sync_promo/sync_promo.js
+++ b/chrome/browser/resources/sync_promo/sync_promo.js
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -61,7 +61,6 @@ cr.define('sync_promo', function() {
// Hide parts of the login UI and show the promo UI.
this.hideOuterLoginUI_();
- $('sync-setup-login-promo-column').hidden = false;
$('promo-skip').hidden = false;
this.showSetupUI_();
@@ -198,16 +197,6 @@ cr.define('sync_promo', function() {
arguments);
},
- /**
- * Shows or hides the title of the promo page.
- * @param {Boolean} visible true if the title should be visible, false
- * otherwise.
- * @private
- */
- setPromoTitleVisible_: function(visible) {
- $('promo-title').hidden = !visible;
- },
-
/** @inheritDoc */
setThrobbersVisible_: function(visible) {
if (visible) {
@@ -225,6 +214,16 @@ cr.define('sync_promo', function() {
},
/**
+ * Shows the given promo version. Each version changes the UI slightly
+ * (for example, replacing text with an infographic).
+ * @param {Integer} the version of the promo.
+ * @private
+ */
+ showPromoVersion_: function(version) {
+ document.documentElement.setAttribute('promo-version', version);
+ },
+
+ /**
* Number of times a user attempted to sign in to GAIA during this page
* view.
* @private
@@ -267,10 +266,6 @@ cr.define('sync_promo', function() {
SyncPromo.getInstance().initializePage();
};
- SyncPromo.setPromoTitleVisible = function(visible) {
- SyncPromo.getInstance().setPromoTitleVisible_(visible);
- };
-
SyncPromo.recordPageViewActions = function() {
SyncPromo.getInstance().recordPageViewActions_();
};
@@ -279,6 +274,10 @@ cr.define('sync_promo', function() {
SyncPromo.getInstance().populatePromoMessage_(resName);
};
+ SyncPromo.showPromoVersion = function(version) {
+ SyncPromo.getInstance().showPromoVersion_(version);
+ };
+
// Export
return {
SyncPromo: SyncPromo