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

Unified Diff: chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js

Issue 130813009: cros: Add SAML redirect banner for enrollment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update layout again Created 6 years, 10 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/chromeos/login/oobe_screen_oauth_enrollment.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js
diff --git a/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js b/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js
index 38492061cc006a8e0d2dbcd9ea7990b89c52e0a9..582993789f6fe569e3cb1ef28280f4c0f0761443 100644
--- a/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js
+++ b/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js
@@ -181,6 +181,7 @@ login.createScreen('OAuthEnrollmentScreen', 'oauth-enrollment', function() {
$('oauth-enroll-cancel-button').textContent =
loadTimeData.getString('oauthEnrollCancelAutoEnrollmentGoBack');
}
+ this.classList.toggle('saml', false);
this.showStep(STEP_SIGNIN);
},
@@ -330,6 +331,15 @@ login.createScreen('OAuthEnrollmentScreen', 'oauth-enrollment', function() {
chrome.send('oauthEnrollRetrieveAuthenticatedUserEmail',
[msg.attemptToken]);
}
+
+ if (msg.method == 'authPageLoaded') {
+ if (msg.isSAML) {
+ $('oauth-saml-notice-message').textContent = loadTimeData.getStringF(
+ 'samlNotice',
+ msg.domain);
+ }
+ this.classList.toggle('saml', msg.isSAML);
+ }
}
};
});
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698