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

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

Issue 1217753004: Hide "Add user" button when enrollment screen is active. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2403
Patch Set: Created 5 years, 6 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/header_bar.js ('k') | ui/login/display_manager.js » ('j') | 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_webview.js
diff --git a/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment_webview.js b/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment_webview.js
index 4cd8fe50fb8ae4959f14a8aaa57a5cd3ebbb08d3..64bba083bde1037385e1cfc6c4591a55de49617a 100644
--- a/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment_webview.js
+++ b/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment_webview.js
@@ -177,6 +177,7 @@ login.createScreen('OAuthEnrollmentScreen', 'oauth-enrollment', function() {
* URL.
*/
onBeforeShow: function(data) {
+ $('login-header-bar').signinUIState = SIGNIN_UI_STATE.ENROLLMENT;
var gaiaParams = {};
gaiaParams.gaiaUrl = data.gaiaUrl;
gaiaParams.gaiaPath = 'embedded/setup/chromeos';
@@ -199,6 +200,10 @@ login.createScreen('OAuthEnrollmentScreen', 'oauth-enrollment', function() {
this.showStep(STEP_SIGNIN);
},
+ onBeforeHide: function() {
+ $('login-header-bar').signinUIState = SIGNIN_UI_STATE.HIDDEN;
+ },
+
/**
* Shows attribute-prompt step with pre-filled asset ID and
* location.
« no previous file with comments | « chrome/browser/resources/chromeos/login/header_bar.js ('k') | ui/login/display_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698