Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / resources / chromeos / login / oobe_screen_oauth_enrollment.js
index 3849206..5829937 100644 (file)
@@ -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);
+      }
     }
   };
 });