def _SigninUIState(oobe):
  """Returns the signin ui state of the oobe. HIDDEN: 0, GAIA_SIGNIN: 1,
  ACCOUNT_PICKER: 2, WRONG_HWID_WARNING: 3, MANAGED_USER_CREATION_FLOW: 4.
  These values are in chrome/browser/resources/chromeos/login/display_manager.js
  """
  return oobe.EvaluateJavaScript('''
    loginHeader = document.getElementById('login-header-bar')
    if (loginHeader) {
      loginHeader.signinUIState_;
    }
  ''')