| Index: chrome/browser/resources/sync_promo/sync_promo.js
|
| diff --git a/chrome/browser/resources/sync_promo/sync_promo.js b/chrome/browser/resources/sync_promo/sync_promo.js
|
| index 5ebde1ec02f0cc7f2d09281a1080582a977cc94e..a0f8c21f5dacdb7f4114925b6c43baabc5222ba7 100644
|
| --- a/chrome/browser/resources/sync_promo/sync_promo.js
|
| +++ b/chrome/browser/resources/sync_promo/sync_promo.js
|
| @@ -4,6 +4,7 @@
|
|
|
| // TODO(sail): Refactor options_page and remove this include.
|
| <include src="../options/options_page.js"/>
|
| +<include src="../shared/js/util.js"/>
|
| <include src="../sync_setup_overlay.js"/>
|
|
|
| cr.define('sync_promo', function() {
|
| @@ -132,6 +133,12 @@ cr.define('sync_promo', function() {
|
| };
|
| $('confirm-everything-cancel').addEventListener('click', cancelFunc);
|
| $('choose-datatypes-cancel').addEventListener('click', cancelFunc);
|
| +
|
| + // Add the source parameter to the document so that it can be used to
|
| + // selectively show and hide elements using CSS.
|
| + var params = parseQueryParams(document.location);
|
| + if (params.source == '0')
|
| + document.documentElement.setAttribute('isstartup', '');
|
| },
|
|
|
| /**
|
|
|