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

Unified Diff: ash/test/ash_test_base.cc

Issue 909293002: Properly set ShelfAlignment during login (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/test/ash_test_base.cc
diff --git a/ash/test/ash_test_base.cc b/ash/test/ash_test_base.cc
index e367ee7a848f82e0be6065d4e1bd252100a14912..d202b1cb7fa1125ed6d2b30e19adf57c4ef77839 100644
--- a/ash/test/ash_test_base.cc
+++ b/ash/test/ash_test_base.cc
@@ -292,6 +292,12 @@ void AshTestBase::SetSessionStarted(bool session_started) {
SetActiveUserSessionStarted(session_started);
}
+void AshTestBase::SetSessionStarting() {
+ ash_test_helper_->test_shell_delegate()
+ ->test_session_state_delegate()
+ ->set_session_state(SessionStateDelegate::SESSION_STATE_ACTIVE);
+}
+
void AshTestBase::SetUserLoggedIn(bool user_logged_in) {
ash_test_helper_->test_shell_delegate()->test_session_state_delegate()->
SetHasActiveUser(user_logged_in);

Powered by Google App Engine
This is Rietveld 408576698