| Index: chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
|
| diff --git a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
|
| index b0aa84a281eedd0db618792687cc644fd97a8122..9b9e81818588eaf4541b5e13328e145d2b8965fc 100644
|
| --- a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
|
| +++ b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
|
| @@ -470,7 +470,10 @@ void SystemTrayDelegateChromeOS::ShowSettings() {
|
| }
|
|
|
| bool SystemTrayDelegateChromeOS::ShouldShowSettings() {
|
| - return UserManager::Get()->GetCurrentUserFlow()->ShouldShowSettings();
|
| + return UserManager::Get()->GetCurrentUserFlow()->ShouldShowSettings() &&
|
| + !ash::Shell::GetInstance()
|
| + ->session_state_delegate()
|
| + ->IsInSecondaryLoginScreen();
|
| }
|
|
|
| void SystemTrayDelegateChromeOS::ShowDateSettings() {
|
| @@ -488,7 +491,11 @@ void SystemTrayDelegateChromeOS::ShowSetTimeDialog() {
|
|
|
| void SystemTrayDelegateChromeOS::ShowNetworkSettings(
|
| const std::string& service_path) {
|
| - if (!LoginState::Get()->IsUserLoggedIn())
|
| + bool userAddingRunning = ash::Shell::GetInstance()
|
| + ->session_state_delegate()
|
| + ->IsInSecondaryLoginScreen();
|
| +
|
| + if (!LoginState::Get()->IsUserLoggedIn() || userAddingRunning)
|
| return;
|
| ShowNetworkSettingsPage(service_path);
|
| }
|
| @@ -580,8 +587,12 @@ void SystemTrayDelegateChromeOS::ShowSupervisedUserInfo() {
|
|
|
| void SystemTrayDelegateChromeOS::ShowEnterpriseInfo() {
|
| ash::user::LoginStatus status = GetUserLoginStatus();
|
| + bool userAddingRunning = ash::Shell::GetInstance()
|
| + ->session_state_delegate()
|
| + ->IsInSecondaryLoginScreen();
|
| +
|
| if (status == ash::user::LOGGED_IN_NONE ||
|
| - status == ash::user::LOGGED_IN_LOCKED) {
|
| + status == ash::user::LOGGED_IN_LOCKED || userAddingRunning) {
|
| scoped_refptr<chromeos::HelpAppLauncher> help_app(
|
| new chromeos::HelpAppLauncher(GetNativeWindow()));
|
| help_app->ShowHelpTopic(chromeos::HelpAppLauncher::HELP_ENTERPRISE);
|
|
|