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

Unified Diff: ash/session_state_delegate.h

Issue 15718003: Add SessionStateObserver with ActiveUserChanged() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: close button when switching users, notify observers with ActiveUserChanged() when new user logs in Created 7 years, 7 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/session_state_delegate.h
diff --git a/ash/session_state_delegate.h b/ash/session_state_delegate.h
index f5451cff48e1fd61d5a6297e8775521b3aaac38a..afb33f976f915515739f8094ce0500771e7f0256 100644
--- a/ash/session_state_delegate.h
+++ b/ash/session_state_delegate.h
@@ -9,6 +9,7 @@
#include <vector>
#include "ash/ash_export.h"
+#include "ash/session_state_observer.h"
#include "base/string16.h"
namespace gfx {
@@ -72,6 +73,10 @@ class ASH_EXPORT SessionStateDelegate {
// Switches to another active user (if that user has already signed in).
virtual void SwitchActiveUser(const std::string& email) = 0;
+
+ // Adds or removes sessions state observer.
+ virtual void AddSessionStateObserver(SessionStateObserver* observer) = 0;
+ virtual void RemoveSessionStateObserver(SessionStateObserver* observer) = 0;
};
} // namespace ash
« no previous file with comments | « ash/ash.gyp ('k') | ash/session_state_delegate_stub.h » ('j') | ash/session_state_observer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698