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

Unified Diff: chrome/browser/resources/sync_promo/sync_promo.js

Issue 9836093: Sync promo: Only show skip button on startup (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
« no previous file with comments | « chrome/browser/resources/sync_promo/sync_promo.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..03186504b2478eaf0b145eac8a62f5172d0a85aa 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', true);
Dan Beam 2012/03/26 23:23:39 also, cr.enablePlatformSpecificCSSRules() uses
sail 2012/03/27 20:23:10 Done.
},
/**
« no previous file with comments | « chrome/browser/resources/sync_promo/sync_promo.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698