| Index: ash/system/chromeos/settings/tray_settings.cc
|
| diff --git a/ash/system/chromeos/settings/tray_settings.cc b/ash/system/chromeos/settings/tray_settings.cc
|
| index bb27a17498c0107a940f049ee4b0ba2ca5d42088..8c91a44336a4d98c551fe5b471e4e44177f9e944 100644
|
| --- a/ash/system/chromeos/settings/tray_settings.cc
|
| +++ b/ash/system/chromeos/settings/tray_settings.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "ash/system/chromeos/settings/tray_settings.h"
|
|
|
| +#include "ash/session/session_state_delegate.h"
|
| #include "ash/shell.h"
|
| #include "ash/system/chromeos/power/power_status.h"
|
| #include "ash/system/chromeos/power/power_status_view.h"
|
| @@ -40,8 +41,12 @@ class SettingsDefaultView : public ActionableView,
|
| ash::kTrayPopupPaddingBetweenItems));
|
|
|
| bool power_view_right_align = false;
|
| + bool userAddingRunning = ash::Shell::GetInstance()
|
| + ->session_state_delegate()
|
| + ->IsInSecondaryLoginScreen();
|
| +
|
| if (login_status_ != user::LOGGED_IN_NONE &&
|
| - login_status_ != user::LOGGED_IN_LOCKED) {
|
| + login_status_ != user::LOGGED_IN_LOCKED && !userAddingRunning) {
|
| ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
|
| views::ImageView* icon =
|
| new ash::FixedSizedImageView(0, ash::kTrayPopupItemHeight);
|
| @@ -72,8 +77,12 @@ class SettingsDefaultView : public ActionableView,
|
|
|
| // Overridden from ash::ActionableView.
|
| virtual bool PerformAction(const ui::Event& event) OVERRIDE {
|
| + bool userAddingRunning = ash::Shell::GetInstance()
|
| + ->session_state_delegate()
|
| + ->IsInSecondaryLoginScreen();
|
| +
|
| if (login_status_ == user::LOGGED_IN_NONE ||
|
| - login_status_ == user::LOGGED_IN_LOCKED)
|
| + login_status_ == user::LOGGED_IN_LOCKED || userAddingRunning)
|
| return false;
|
|
|
| ash::Shell::GetInstance()->system_tray_delegate()->ShowSettings();
|
|
|