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

Side by Side Diff: trunk/src/chrome/browser/ui/ash/chrome_shell_delegate_views.cc

Issue 14200034: Revert 194578 "Add ash SessionStateDelegate" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/ash/chrome_shell_delegate.h" 5 #include "chrome/browser/ui/ash/chrome_shell_delegate.h"
6 6
7 #include "ash/magnifier/magnifier_constants.h" 7 #include "ash/magnifier/magnifier_constants.h"
8 #include "chrome/browser/ui/ash/caps_lock_delegate_views.h" 8 #include "chrome/browser/ui/ash/caps_lock_delegate_views.h"
9 #include "chrome/browser/ui/ash/window_positioner.h" 9 #include "chrome/browser/ui/ash/window_positioner.h"
10 10
11 bool ChromeShellDelegate::IsUserLoggedIn() const {
12 return true;
13 }
14
15 // Returns true if we're logged in and browser has been started
16 bool ChromeShellDelegate::IsSessionStarted() const {
17 return true;
18 }
19
20 bool ChromeShellDelegate::IsGuestSession() const {
21 return false;
22 }
23
11 bool ChromeShellDelegate::IsFirstRunAfterBoot() const { 24 bool ChromeShellDelegate::IsFirstRunAfterBoot() const {
12 return false; 25 return false;
13 } 26 }
14 27
28 bool ChromeShellDelegate::CanLockScreen() const {
29 return false;
30 }
31
32 void ChromeShellDelegate::LockScreen() {
33 }
34
35 bool ChromeShellDelegate::IsScreenLocked() const {
36 return false;
37 }
38
15 void ChromeShellDelegate::PreInit() { 39 void ChromeShellDelegate::PreInit() {
16 } 40 }
17 41
18 void ChromeShellDelegate::Shutdown() { 42 void ChromeShellDelegate::Shutdown() {
19 } 43 }
20 44
21 void ChromeShellDelegate::OpenFileManager(bool as_dialog) { 45 void ChromeShellDelegate::OpenFileManager(bool as_dialog) {
22 } 46 }
23 47
24 void ChromeShellDelegate::OpenCrosh() { 48 void ChromeShellDelegate::OpenCrosh() {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 117
94 void ChromeShellDelegate::Observe(int type, 118 void ChromeShellDelegate::Observe(int type,
95 const content::NotificationSource& source, 119 const content::NotificationSource& source,
96 const content::NotificationDetails& details) { 120 const content::NotificationDetails& details) {
97 // MSVC++ warns about switch statements without any cases. 121 // MSVC++ warns about switch statements without any cases.
98 NOTREACHED() << "Unexpected notification " << type; 122 NOTREACHED() << "Unexpected notification " << type;
99 } 123 }
100 124
101 void ChromeShellDelegate::PlatformInit() { 125 void ChromeShellDelegate::PlatformInit() {
102 } 126 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698