| Index: chrome/browser/chromeos/login/ui/webui_login_view.cc
|
| diff --git a/chrome/browser/chromeos/login/ui/webui_login_view.cc b/chrome/browser/chromeos/login/ui/webui_login_view.cc
|
| index 9c203f73680a330020650cd238b204e30488eecd..6bd2ea7790b0097ea26a0344a7dff8febc3cbb1f 100644
|
| --- a/chrome/browser/chromeos/login/ui/webui_login_view.cc
|
| +++ b/chrome/browser/chromeos/login/ui/webui_login_view.cc
|
| @@ -173,10 +173,12 @@ WebUILoginView::~WebUILoginView() {
|
| observer_list_,
|
| OnHostDestroying());
|
|
|
| +#if !defined(USE_ATHENA)
|
| if (ash::Shell::GetInstance()->HasPrimaryStatusArea()) {
|
| ash::Shell::GetInstance()->GetPrimarySystemTray()->
|
| SetNextFocusableView(NULL);
|
| }
|
| +#endif
|
| }
|
|
|
| void WebUILoginView::Init() {
|
| @@ -313,6 +315,7 @@ void WebUILoginView::OnPostponedShow() {
|
| }
|
|
|
| void WebUILoginView::SetStatusAreaVisible(bool visible) {
|
| +#if !defined(USE_ATHENA)
|
| if (ash::Shell::GetInstance()->HasPrimaryStatusArea()) {
|
| ash::SystemTray* tray = ash::Shell::GetInstance()->GetPrimarySystemTray();
|
| if (visible) {
|
| @@ -323,11 +326,14 @@ void WebUILoginView::SetStatusAreaVisible(bool visible) {
|
| tray->GetWidget()->Hide();
|
| }
|
| }
|
| +#endif
|
| }
|
|
|
| void WebUILoginView::SetUIEnabled(bool enabled) {
|
| forward_keyboard_event_ = enabled;
|
| +#if !defined(USE_ATHENA)
|
| ash::Shell::GetInstance()->GetPrimarySystemTray()->SetEnabled(enabled);
|
| +#endif
|
| }
|
|
|
| void WebUILoginView::AddFrameObserver(FrameObserver* frame_observer) {
|
| @@ -426,12 +432,14 @@ bool WebUILoginView::TakeFocus(content::WebContents* source, bool reverse) {
|
| if (!forward_keyboard_event_)
|
| return false;
|
|
|
| +#if !defined(USE_ATHENA)
|
| ash::SystemTray* tray = ash::Shell::GetInstance()->GetPrimarySystemTray();
|
| if (tray && tray->GetWidget()->IsVisible()) {
|
| tray->SetNextFocusableView(this);
|
| ash::Shell::GetInstance()->RotateFocus(reverse ? ash::Shell::BACKWARD :
|
| - ash::Shell::FORWARD);
|
| + ash::Shell::FORWARD);
|
| }
|
| +#endif
|
|
|
| return true;
|
| }
|
|
|