Adding instrumentation to locate the source of jankiness
[chromium-blink-merge.git] / chrome / browser / ui / ash / session_state_delegate_views.cc
blobde814bd3f1c1452e74dba8de267bcb68b2619800
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/ash/session_state_delegate_views.h"
7 #include "base/logging.h"
8 #include "base/strings/string16.h"
9 #include "base/strings/utf_string_conversions.h"
10 #include "components/user_manager/empty_user_info.h"
11 #include "ui/gfx/image/image_skia.h"
13 SessionStateDelegate::SessionStateDelegate() {
16 SessionStateDelegate::~SessionStateDelegate() {
19 content::BrowserContext* SessionStateDelegate::GetBrowserContextByIndex(
20 ash::MultiProfileIndex index) {
21 NOTIMPLEMENTED();
22 return NULL;
25 content::BrowserContext* SessionStateDelegate::GetBrowserContextForWindow(
26 aura::Window* window) {
27 NOTIMPLEMENTED();
28 return NULL;
31 int SessionStateDelegate::GetMaximumNumberOfLoggedInUsers() const {
32 return 3;
35 int SessionStateDelegate::NumberOfLoggedInUsers() const {
36 return 1;
39 bool SessionStateDelegate::IsActiveUserSessionStarted() const {
40 return true;
43 bool SessionStateDelegate::CanLockScreen() const {
44 return false;
47 bool SessionStateDelegate::IsScreenLocked() const {
48 return false;
51 bool SessionStateDelegate::ShouldLockScreenBeforeSuspending() const {
52 return false;
55 void SessionStateDelegate::LockScreen() {
58 void SessionStateDelegate::UnlockScreen() {
61 bool SessionStateDelegate::IsUserSessionBlocked() const {
62 return false;
65 ash::SessionStateDelegate::SessionState SessionStateDelegate::GetSessionState()
66 const {
67 return SESSION_STATE_ACTIVE;
70 const user_manager::UserInfo* SessionStateDelegate::GetUserInfo(
71 ash::MultiProfileIndex index) const {
72 return GetUserInfo(static_cast<content::BrowserContext*>(NULL));
75 const user_manager::UserInfo* SessionStateDelegate::GetUserInfo(
76 content::BrowserContext* context) const {
77 static const user_manager::UserInfo* kUserInfo =
78 new user_manager::EmptyUserInfo();
79 return kUserInfo;
82 bool SessionStateDelegate::ShouldShowAvatar(aura::Window* window) const {
83 return false;
86 void SessionStateDelegate::SwitchActiveUser(const std::string& user_id) {
87 NOTIMPLEMENTED();
90 void SessionStateDelegate::CycleActiveUser(CycleUser cycle_user) {
91 NOTIMPLEMENTED();
94 bool SessionStateDelegate::IsMultiProfileAllowedByPrimaryUserPolicy() const {
95 return true;
98 void SessionStateDelegate::AddSessionStateObserver(
99 ash::SessionStateObserver* observer) {
100 NOTIMPLEMENTED();
103 void SessionStateDelegate::RemoveSessionStateObserver(
104 ash::SessionStateObserver* observer) {
105 NOTIMPLEMENTED();