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

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

Issue 332243002: Network connectivity errors handling (incl. CP) for enrollment flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nits Created 6 years, 5 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
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 297e4e6f6a5c30af0f2c5c3a23e3328513672afc..09475949c27c75d1ebe2b82a260b1a1717d8533f 100644
--- a/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js
+++ b/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js
@@ -17,6 +17,7 @@ login.createScreen('OAuthEnrollmentScreen', 'oauth-enrollment', function() {
'showError',
'showWorking',
'setAuthenticatedUserEmail',
+ 'doReload',
],
/**
@@ -223,6 +224,11 @@ login.createScreen('OAuthEnrollmentScreen', 'oauth-enrollment', function() {
chrome.send('oauthEnrollCompleteLogin', [email]);
},
+ doReload: function() {
+ $('oauth-enroll-signin-frame').contentWindow.location.href =
+ this.signInUrl_;
+ },
+
/**
* Handler for cancellations of an enforced auto-enrollment.
*/
@@ -304,6 +310,7 @@ login.createScreen('OAuthEnrollmentScreen', 'oauth-enrollment', function() {
msg.domain);
}
this.classList.toggle('saml', msg.isSAML);
+ chrome.send('frameLoadingCompleted', [0]);
}
if (msg.method == 'insecureContentBlocked') {

Powered by Google App Engine
This is Rietveld 408576698