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

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

Issue 2099793002: mash: Migrate some system user files to common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 4 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
Index: ash/system/user/tray_user_separator.cc
diff --git a/ash/system/user/tray_user_separator.cc b/ash/system/user/tray_user_separator.cc
deleted file mode 100644
index 1a2d71e9fd8cb4a235ed428d7466df6baee26b41..0000000000000000000000000000000000000000
--- a/ash/system/user/tray_user_separator.cc
+++ /dev/null
@@ -1,49 +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/system/user/tray_user_separator.h"
-
-#include "ash/common/session/session_state_delegate.h"
-#include "ash/common/wm_shell.h"
-#include "ash/shell.h"
-#include "ui/views/view.h"
-
-namespace ash {
-
-TrayUserSeparator::TrayUserSeparator(SystemTray* system_tray)
- : SystemTrayItem(system_tray),
- separator_shown_(false) {
-}
-
-views::View* TrayUserSeparator::CreateTrayView(LoginStatus status) {
- return NULL;
-}
-
-views::View* TrayUserSeparator::CreateDefaultView(LoginStatus status) {
- if (status == LoginStatus::NOT_LOGGED_IN)
- return NULL;
-
- const SessionStateDelegate* session_state_delegate =
- Shell::GetInstance()->session_state_delegate();
-
- // 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();
-}
-
-views::View* TrayUserSeparator::CreateDetailedView(LoginStatus status) {
- return NULL;
-}
-
-void TrayUserSeparator::DestroyDefaultView() {
- separator_shown_ = false;
-}
-
-} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698