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

Unified Diff: ash/common/system/tiles/tray_tiles.cc

Issue 2429923002: Implement all system menu title row buttons for Ash MD (Closed)
Patch Set: OS_WIN define in tests Created 4 years, 2 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 | « ash/common/system/tiles/tray_tiles.h ('k') | ash/common/system/tiles/tray_tiles_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tiles/tray_tiles.cc
diff --git a/ash/common/system/tiles/tray_tiles.cc b/ash/common/system/tiles/tray_tiles.cc
index af79fad8e074ddab001be1ef7f004ca9694013ef..30335caa923173a9c7f72feddb75b809ea8cc6ba 100644
--- a/ash/common/system/tiles/tray_tiles.cc
+++ b/ash/common/system/tiles/tray_tiles.cc
@@ -17,19 +17,9 @@ TrayTiles::TrayTiles(SystemTray* system_tray)
TrayTiles::~TrayTiles() {}
views::View* TrayTiles::CreateDefaultView(LoginStatus status) {
- WmShell* shell = WmShell::Get();
- const bool adding_user =
- shell->GetSessionStateDelegate()->IsInSecondaryLoginScreen();
-
- if (status == LoginStatus::LOCKED || status == LoginStatus::NOT_LOGGED_IN ||
- adding_user) {
- return nullptr;
- }
-
CHECK(default_view_ == nullptr);
- default_view_ = new TilesDefaultView(this);
+ default_view_ = new TilesDefaultView(this, status);
default_view_->Init();
-
return default_view_;
}
« no previous file with comments | « ash/common/system/tiles/tray_tiles.h ('k') | ash/common/system/tiles/tray_tiles_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698