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); |
+ } |
} |
}; |
}); |