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

Unified Diff: ash/test/test_session_state_delegate.h

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/test_session_state_delegate.h
diff --git a/ash/test/test_session_state_delegate.h b/ash/test/test_session_state_delegate.h
index a77b3cdbeaf8cce57c8ada74ed257a656bcf233a..b35f8642d1a60dbaf11901b8345216901c95fb12 100644
--- a/ash/test/test_session_state_delegate.h
+++ b/ash/test/test_session_state_delegate.h
@@ -23,6 +23,9 @@ class TestSessionStateDelegate : public SessionStateDelegate {
~TestSessionStateDelegate() override;
void set_logged_in_users(int users) { logged_in_users_ = users; }
+ void set_session_state(SessionState session_state) {
+ session_state_ = session_state;
+ }
void AddUser(const std::string user_id);
const user_manager::UserInfo* GetActiveUserInfo() const;
@@ -111,6 +114,10 @@ class TestSessionStateDelegate : public SessionStateDelegate {
std::vector<MockUserInfo*> user_list_;
+ // The current state of the login screen. |session_state_| becomes active
+ // before the profile and browser UI are available.
+ SessionState session_state_;
+
DISALLOW_COPY_AND_ASSIGN(TestSessionStateDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698