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

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

Issue 1207893004: Hide "Add user" button when enrollment screen is active. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 | « no previous file | chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment_webview.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/login/header_bar.js
diff --git a/chrome/browser/resources/chromeos/login/header_bar.js b/chrome/browser/resources/chromeos/login/header_bar.js
index 0fc17fb2a93b57fde5fcd82d3e45490eac715625..7c9f4c7e4bafa80d443c62c2c064dfaea0767f44 100644
--- a/chrome/browser/resources/chromeos/login/header_bar.js
+++ b/chrome/browser/resources/chromeos/login/header_bar.js
@@ -309,6 +309,8 @@ cr.define('login', function() {
*/
updateUI_: function() {
var gaiaIsActive = (this.signinUIState_ == SIGNIN_UI_STATE.GAIA_SIGNIN);
+ var enrollmentIsActive =
+ (this.signinUIState_ == SIGNIN_UI_STATE.ENROLLMENT);
var accountPickerIsActive =
(this.signinUIState_ == SIGNIN_UI_STATE.ACCOUNT_PICKER);
var supervisedUserCreationDialogIsActive =
@@ -337,6 +339,7 @@ cr.define('login', function() {
$('add-user-button').hidden =
(!this.isNewGaiaFlow_ && !accountPickerIsActive) ||
(this.isNewGaiaFlow_ && gaiaIsActive) ||
+ enrollmentIsActive ||
isMultiProfilesUI ||
isLockScreen ||
supervisedUserCreationDialogIsActiveAndNotIntro;
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment_webview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698