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

Unified Diff: ash/session_state_observer.h

Issue 102483006: Getting rid of GetDefaultProfile & fixing multi user issues with accessibility (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed unit test Created 7 years 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
« no previous file with comments | « ash/default_accessibility_delegate.cc ('k') | ash/session_state_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/session_state_observer.h
diff --git a/ash/session_state_observer.h b/ash/session_state_observer.h
index 1de31cd1db72b0e6ef1ff54ec7447804ff921a8e..de1b5333801e51934884c9f447da2b23db25d12c 100644
--- a/ash/session_state_observer.h
+++ b/ash/session_state_observer.h
@@ -8,6 +8,7 @@
#include <string>
#include "ash/ash_export.h"
+#include "base/basictypes.h"
namespace ash {
@@ -23,6 +24,19 @@ class ASH_EXPORT SessionStateObserver {
virtual ~SessionStateObserver() {}
};
+// A class to attach / detach an object as a session state observer with a
+// scoped pointer.
+class ASH_EXPORT ScopedSessionStateObserver {
+ public:
+ explicit ScopedSessionStateObserver(ash::SessionStateObserver* observer);
+ virtual ~ScopedSessionStateObserver();
+
+ private:
+ ash::SessionStateObserver* observer_;
+
+ DISALLOW_COPY_AND_ASSIGN(ScopedSessionStateObserver);
+};
+
} // namespace ash
#endif // ASH_SESSION_STATE_OBSERVER_H_
« no previous file with comments | « ash/default_accessibility_delegate.cc ('k') | ash/session_state_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698