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

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..e1757bfb36bf47a99c661c6ba9e154e490010651 100644
--- a/ash/test/test_session_state_delegate.h
+++ b/ash/test/test_session_state_delegate.h
@@ -81,6 +81,10 @@ 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
+ // not notify listeners.
+ void SetSessionState(SessionState session_state);
tdanderson 2015/02/11 20:32:35 The preference for a simple mutator such as this w
jonross 2015/02/11 22:17:45 Done.
+
private:
// Whether a session is in progress and there is an active user.
bool has_active_user_;
@@ -111,6 +115,10 @@ class TestSessionStateDelegate : public SessionStateDelegate {
std::vector<MockUserInfo*> user_list_;
+ // The current state of the login screen. |session_state_| becomes true before
tdanderson 2015/02/11 20:32:35 Specify what you mean by "becomes true" since |ses
jonross 2015/02/11 22:17:45 Done.
+ // the profile and browser UI are available.
+ SessionState session_state_;
+
DISALLOW_COPY_AND_ASSIGN(TestSessionStateDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698