Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(572)

Unified Diff: chrome/browser/chromeos/login/ui/webui_login_view.cc

Issue 1929733002: Login Screen for Mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 27c42e222d8ea2beb060506ca9d9df5ef192b262..9e7b81b1b497c86b5c2482eeace95791158a598c 100644
--- a/chrome/browser/chromeos/login/ui/webui_login_view.cc
+++ b/chrome/browser/chromeos/login/ui/webui_login_view.cc
@@ -25,6 +25,7 @@
#include "chrome/browser/password_manager/chrome_password_manager_client.h"
#include "chrome/browser/renderer_preferences_util.h"
#include "chrome/browser/sessions/session_tab_helper.h"
+#include "chrome/browser/ui/ash/ash_util.h"
#include "chrome/browser/ui/autofill/chrome_autofill_client.h"
#include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
#include "chromeos/dbus/dbus_thread_manager.h"
@@ -167,7 +168,8 @@ WebUILoginView::~WebUILoginView() {
observer_list_,
OnHostDestroying());
- if (ash::Shell::GetInstance()->HasPrimaryStatusArea()) {
+ if (!chrome::IsRunningInMash() &&
+ ash::Shell::GetInstance()->HasPrimaryStatusArea()) {
ash::Shell::GetInstance()->GetPrimarySystemTray()->
SetNextFocusableView(NULL);
}
@@ -307,7 +309,8 @@ void WebUILoginView::OnPostponedShow() {
}
void WebUILoginView::SetStatusAreaVisible(bool visible) {
- if (ash::Shell::GetInstance()->HasPrimaryStatusArea()) {
+ if (!chrome::IsRunningInMash() &&
+ ash::Shell::GetInstance()->HasPrimaryStatusArea()) {
ash::SystemTray* tray = ash::Shell::GetInstance()->GetPrimarySystemTray();
tray->SetVisible(visible);
if (visible) {
@@ -321,6 +324,8 @@ void WebUILoginView::SetStatusAreaVisible(bool visible) {
void WebUILoginView::SetUIEnabled(bool enabled) {
forward_keyboard_event_ = enabled;
+ if (chrome::IsRunningInMash())
+ return;
ash::SystemTray* tray = ash::Shell::GetInstance()->GetPrimarySystemTray();
// We disable the UI to prevent user from interracting with UI elements,
@@ -420,6 +425,9 @@ bool WebUILoginView::TakeFocus(content::WebContents* source, bool reverse) {
if (!forward_keyboard_event_)
return false;
+ if (chrome::IsRunningInMash())
+ return true;
+
ash::SystemTray* tray = ash::Shell::GetInstance()->GetPrimarySystemTray();
if (tray && tray->GetWidget()->IsVisible()) {
tray->SetNextFocusableView(this);

Powered by Google App Engine
This is Rietveld 408576698