summaryrefslogtreecommitdiffstats
path: root/ash/shell_delegate.h
diff options
context:
space:
mode:
authorbartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-21 13:58:27 +0000
committerbartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-21 13:58:27 +0000
commit91545875f50bd58f48d1311355c8f0e4eef847e6 (patch)
treedcca143751c99c5434f72f3fc26fe7371dc3b257 /ash/shell_delegate.h
parent125d7dcd64991fa580bcd9cb98e43e9baa28f670 (diff)
downloadchromium_src-91545875f50bd58f48d1311355c8f0e4eef847e6.zip
chromium_src-91545875f50bd58f48d1311355c8f0e4eef847e6.tar.gz
chromium_src-91545875f50bd58f48d1311355c8f0e4eef847e6.tar.bz2
Let chromeos::User decide whether the current session can be locked
We have several different methods that try to determine whether the current session can be locked. This redundancy is difficult to maintain and has drifted out of sync in the past. The CL consolidates all checks and makes the chromeos::User class the autoritative source for whether the current session can be locked or not. BUG=152928 Review URL: https://chromiumcodereview.appspot.com/11412100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169031 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell_delegate.h')
-rw-r--r--ash/shell_delegate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ash/shell_delegate.h b/ash/shell_delegate.h
index 6f3c7f3..3c5d433 100644
--- a/ash/shell_delegate.h
+++ b/ash/shell_delegate.h
@@ -76,6 +76,10 @@ class ASH_EXPORT ShellDelegate {
// restarted, typically due to logging in as a guest or logging out.
virtual bool IsFirstRunAfterBoot() = 0;
+ // Returns true if a user is logged in whose session can be locked (i.e. the
+ // user has a password with which to unlock the session).
+ virtual bool CanLockScreen() = 0;
+
// Invoked when a user locks the screen.
virtual void LockScreen() = 0;