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

Unified Diff: ash/common/system/user/tray_user_separator.cc

Issue 2678353005: Remove pre-MD code related to tray/menu user profiles. (Closed)
Patch Set: back out a11y changes and rebase Created 3 years, 10 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/user/tray_user_separator.h ('k') | ash/common/system/user/user_card_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/user/tray_user_separator.cc
diff --git a/ash/common/system/user/tray_user_separator.cc b/ash/common/system/user/tray_user_separator.cc
deleted file mode 100644
index 2082818246ceb97add0f5afc16ee148d19350c01..0000000000000000000000000000000000000000
--- a/ash/common/system/user/tray_user_separator.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ash/common/system/user/tray_user_separator.h"
-
-#include "ash/common/session/session_state_delegate.h"
-#include "ash/common/wm_shell.h"
-#include "ui/views/view.h"
-
-namespace ash {
-
-TrayUserSeparator::TrayUserSeparator(SystemTray* system_tray)
- : SystemTrayItem(system_tray, UMA_NOT_RECORDED), separator_shown_(false) {}
-
-views::View* TrayUserSeparator::CreateDefaultView(LoginStatus status) {
- if (status == LoginStatus::NOT_LOGGED_IN)
- return NULL;
-
- const SessionStateDelegate* session_state_delegate =
- WmShell::Get()->GetSessionStateDelegate();
-
- // If the screen is locked, a system modal dialog or a single user is shown,
- // show nothing.
- if (session_state_delegate->IsUserSessionBlocked() ||
- WmShell::Get()->IsSystemModalWindowOpen() ||
- session_state_delegate->NumberOfLoggedInUsers() < 2)
- return NULL;
-
- separator_shown_ = true;
- return new views::View();
-}
-
-void TrayUserSeparator::DestroyDefaultView() {
- separator_shown_ = false;
-}
-
-} // namespace ash
« no previous file with comments | « ash/common/system/user/tray_user_separator.h ('k') | ash/common/system/user/user_card_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698