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

Unified Diff: ash/common/test/test_session_state_delegate.cc

Issue 2446453002: Refactor ShouldLockScreenBeforeSuspending to ShouldLockScreenAutomatically (Closed)
Patch Set: comment 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
« no previous file with comments | « ash/common/test/test_session_state_delegate.h ('k') | ash/mus/bridge/wm_shell_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/test/test_session_state_delegate.cc
diff --git a/ash/common/test/test_session_state_delegate.cc b/ash/common/test/test_session_state_delegate.cc
index d51511f52608894ba053e19f020668a8859af1e4..84a89e23626bddea589181bc5a8b1f3605380bcd 100644
--- a/ash/common/test/test_session_state_delegate.cc
+++ b/ash/common/test/test_session_state_delegate.cc
@@ -87,7 +87,7 @@ class TestSessionStateDelegate::TestUserManager {
TestSessionStateDelegate::TestSessionStateDelegate()
: can_lock_screen_(true),
- should_lock_screen_before_suspending_(false),
+ should_lock_screen_automatically_(false),
screen_locked_(false),
user_adding_screen_running_(false),
logged_in_users_(1),
@@ -136,8 +136,8 @@ bool TestSessionStateDelegate::IsScreenLocked() const {
return screen_locked_;
}
-bool TestSessionStateDelegate::ShouldLockScreenBeforeSuspending() const {
- return should_lock_screen_before_suspending_;
+bool TestSessionStateDelegate::ShouldLockScreenAutomatically() const {
+ return should_lock_screen_automatically_;
}
void TestSessionStateDelegate::LockScreen() {
@@ -190,9 +190,9 @@ void TestSessionStateDelegate::SetCanLockScreen(bool can_lock_screen) {
->can_lock_screen_ = can_lock_screen;
}
-void TestSessionStateDelegate::SetShouldLockScreenBeforeSuspending(
+void TestSessionStateDelegate::SetShouldLockScreenAutomatically(
bool should_lock) {
- should_lock_screen_before_suspending_ = should_lock;
+ should_lock_screen_automatically_ = should_lock;
}
void TestSessionStateDelegate::SetUserAddingScreenRunning(
« no previous file with comments | « ash/common/test/test_session_state_delegate.h ('k') | ash/mus/bridge/wm_shell_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698