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

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

Issue 1194053003: Close tray bubble before disabling UI for sign-in. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 65b2c75fcb42aa20f6fed4507b9b4d90cb94da78..c1be463e368346392d4e97511a7b0626e2594796 100644
--- a/chrome/browser/chromeos/login/ui/webui_login_view.cc
+++ b/chrome/browser/chromeos/login/ui/webui_login_view.cc
@@ -348,7 +348,10 @@ void WebUILoginView::SetStatusAreaVisible(bool visible) {
void WebUILoginView::SetUIEnabled(bool enabled) {
forward_keyboard_event_ = enabled;
- ash::Shell::GetInstance()->GetPrimarySystemTray()->SetEnabled(enabled);
+ ash::SystemTray* tray = ash::Shell::GetInstance()->GetPrimarySystemTray();
+ if (!enabled && tray->HasSystemBubble())
achuithb 2015/06/19 23:52:06 Could you please add a comment here summarizing wh
+ tray->CloseSystemBubble();
+ tray->SetEnabled(enabled);
}
void WebUILoginView::AddFrameObserver(FrameObserver* frame_observer) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698