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

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..e5d8cf2adee72460509f2991d9beeb39dee22a6d 100644
--- a/ash/test/test_session_state_delegate.h
+++ b/ash/test/test_session_state_delegate.h
@@ -81,6 +81,12 @@ class TestSessionStateDelegate : public SessionStateDelegate {
// Setting non NULL image enables avatar icon.
void SetUserImage(const gfx::ImageSkia& user_image);
+ // Updates the internal state that indicates the state of the session. Does
tdanderson 2015/02/11 22:59:53 nit: comment unnecessary here, and this can move t
jonross 2015/02/12 15:36:58 Done.
+ // not notify listeners.
+ void set_session_state(SessionState session_state) {
+ session_state_ = session_state;
+ }
+
private:
// Whether a session is in progress and there is an active user.
bool has_active_user_;
@@ -111,6 +117,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