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..905c2bea30a6a11e91600b6a8a84845efec14e88 100644 |
--- a/chrome/browser/resources/sync_promo/sync_promo.js |
+++ b/chrome/browser/resources/sync_promo/sync_promo.js |
@@ -132,6 +132,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('promo-not-startup', true); |
Dan Beam
2012/03/26 21:35:20
nit: I think other attributes in NTP have no hyphe
sail
2012/03/26 21:37:15
Done.
|
}, |
/** |