Chromium Code Reviews| Index: ash/system/bluetooth/tray_bluetooth.cc |
| diff --git a/ash/system/bluetooth/tray_bluetooth.cc b/ash/system/bluetooth/tray_bluetooth.cc |
| index 6f4509f8e8224a6fd50a79537cad687fa199d11b..829015ca213be0d207fbca5eef812e7a3fcf40f8 100644 |
| --- a/ash/system/bluetooth/tray_bluetooth.cc |
| +++ b/ash/system/bluetooth/tray_bluetooth.cc |
| @@ -4,6 +4,7 @@ |
| #include "ash/system/bluetooth/tray_bluetooth.h" |
| +#include "ash/session/session_state_delegate.h" |
| #include "ash/shell.h" |
| #include "ash/system/tray/fixed_sized_scroll_view.h" |
| #include "ash/system/tray/hover_highlight_view.h" |
| @@ -301,7 +302,11 @@ class BluetoothDetailedView : public TrayDetailsView, |
| // Add bluetooth device requires a browser window, hide it for non logged in |
| // user. |
| - if (login_ == user::LOGGED_IN_NONE || login_ == user::LOGGED_IN_LOCKED) |
| + if (login_ == user::LOGGED_IN_NONE || login_ == user::LOGGED_IN_LOCKED || |
| + ash::Shell::GetInstance() |
| + ->session_state_delegate() |
| + ->GetSessionState() == |
| + ash::SessionStateDelegate::SESSION_STATE_LOGIN_SECONDARY) |
|
oshima
2014/07/31 18:28:31
Am I correct that many checks are basically "if a
Roman Sorokin (ftl)
2014/07/31 18:51:32
This method does exist (IsUserSessionBlocked) but
|
| return; |
|
oshima
2014/07/31 18:28:31
you need {} in this case
|
| ash::SystemTrayDelegate* delegate = |