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

Unified Diff: ash/shell.cc

Issue 9812043: aura: Uber tray should not show up on start screen in kiosk mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed build Created 8 years, 9 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 | ash/system/tray/system_tray.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 64803e8917d50bf4819b8177747c482b8a77d846..b5b6014fec22d66f21ae7c89d9ba4220abfd6ded 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -243,6 +243,8 @@ class DummySystemTrayDelegate : public SystemTrayDelegate {
private:
+ virtual bool GetTrayVisibilityOnStartup() OVERRIDE { return true; }
+
// Overridden from SystemTrayDelegate:
virtual const std::string GetUserDisplayName() const OVERRIDE {
return "Über tray Über tray Über tray Über tray";
@@ -632,6 +634,8 @@ void Shell::Init() {
tray_->AddTrayItem(tray_date);
tray_->AddTrayItem(tray_accessibility);
tray_->AddTrayItem(tray_caps_lock);
+
+ tray_->SetVisible(tray_delegate_->GetTrayVisibilityOnStartup());
}
if (!status_widget_)
status_widget_ = internal::CreateStatusArea(tray_.get());
« no previous file with comments | « no previous file | ash/system/tray/system_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698