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/webui_login_view.cc

Issue 10827009: Don't show tray on OOBE boot (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: proper fix Created 8 years, 5 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/webui_login_view.cc
diff --git a/chrome/browser/chromeos/login/webui_login_view.cc b/chrome/browser/chromeos/login/webui_login_view.cc
index b770eff66f2b18609e15e8688d453e8e5722e612..3166517cc0eed09a1365a62ccbdfac121f15634a 100644
--- a/chrome/browser/chromeos/login/webui_login_view.cc
+++ b/chrome/browser/chromeos/login/webui_login_view.cc
@@ -236,10 +236,13 @@ void WebUILoginView::OpenProxySettings() {
void WebUILoginView::SetStatusAreaVisible(bool visible) {
ash::SystemTray* tray = ash::Shell::GetInstance()->system_tray();
if (tray) {
- if (visible)
+ if (visible) {
+ // Tray may have been initialized being hidden.
sadrul 2012/07/25 17:47:28 Do you know when/why this happens?
Nikita (slow) 2012/07/25 17:54:17 That is how it is initialized if it needs to be hi
sadrul 2012/07/25 17:56:27 Ah, cool. Thanks!
+ tray->SetVisible(visible);
tray->GetWidget()->Show();
- else
+ } else {
tray->GetWidget()->Hide();
+ }
}
}
« no previous file with comments | « chrome/browser/chromeos/login/base_login_display_host.cc ('k') | chrome/browser/chromeos/system/ash_system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698