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

Unified Diff: ash/shell/shell_delegate_impl.cc

Issue 2446453002: Refactor ShouldLockScreenBeforeSuspending to ShouldLockScreenAutomatically (Closed)
Patch Set: Created 4 years, 2 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/shell/shell_delegate_impl.cc
diff --git a/ash/shell/shell_delegate_impl.cc b/ash/shell/shell_delegate_impl.cc
index f3d74afd7311e74c02bbf4e7dae822002328eba7..2d69cc9e9265431342b0aa19caaa7a7e2d3fe96b 100644
--- a/ash/shell/shell_delegate_impl.cc
+++ b/ash/shell/shell_delegate_impl.cc
@@ -124,7 +124,7 @@ class SessionStateDelegateImpl : public SessionStateDelegate {
bool IsActiveUserSessionStarted() const override { return true; }
bool CanLockScreen() const override { return true; }
bool IsScreenLocked() const override { return screen_locked_; }
- bool ShouldLockScreenBeforeSuspending() const override { return false; }
+ bool ShouldLockScreenAutomatically() const override { return false; }
void LockScreen() override {
shell::CreateLockScreen();
screen_locked_ = true;

Powered by Google App Engine
This is Rietveld 408576698