Index: chrome/browser/resources/chromeos/login/screen_gaia_signin.js |
=================================================================== |
--- chrome/browser/resources/chromeos/login/screen_gaia_signin.js (revision 96208) |
+++ chrome/browser/resources/chromeos/login/screen_gaia_signin.js (working copy) |
@@ -34,6 +34,12 @@ |
/** @inheritDoc */ |
decorate: function() { |
+ $('createAccount').onclick = function() { |
+ chrome.send('createAccount'); |
+ }; |
+ $('guestSignin').onclick = function() { |
+ chrome.send('launchIncognito'); |
+ }; |
}, |
/** |
@@ -59,6 +65,9 @@ |
frame.contentWindow.location.href = data.startUrl; |
this.extension_url_ = data.startUrl; |
// TODO(xiyuan): Pre-populate Gaia with data.email (if any). |
+ |
+ $('createAccount').hidden = !data.createAccount; |
+ $('guestSignin').hidden = !data.guestSignin; |
}, |
/** |