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

Unified Diff: components/session_manager/core/session_manager.cc

Issue 2438063002: user_manager: Remove deps on session_manager (Closed)
Patch Set: fix nits in PS1 Created 4 years, 2 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
« no previous file with comments | « components/session_manager/core/session_manager.h ('k') | components/user_manager/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/session_manager/core/session_manager.cc
diff --git a/components/session_manager/core/session_manager.cc b/components/session_manager/core/session_manager.cc
index f1e4d5d2b722825207d2f7b49f4e246779ed132f..3bf3b01e87a85d11d2e29c43ef215abeb31b1ad6 100644
--- a/components/session_manager/core/session_manager.cc
+++ b/components/session_manager/core/session_manager.cc
@@ -12,7 +12,7 @@ namespace session_manager {
// static
SessionManager* SessionManager::instance = NULL;
-SessionManager::SessionManager() : session_state_(SessionState::UNKNOWN) {
+SessionManager::SessionManager() {
DCHECK(!SessionManager::Get());
SessionManager::SetInstance(this);
}
@@ -38,6 +38,14 @@ void SessionManager::SetSessionState(SessionState state) {
}
}
+bool SessionManager::IsSessionStarted() const {
+ return session_started_;
+}
+
+void SessionManager::SessionStarted() {
+ session_started_ = true;
+}
+
void SessionManager::Initialize(SessionManagerDelegate* delegate) {
DCHECK(delegate);
delegate_.reset(delegate);
@@ -53,7 +61,7 @@ void SessionManager::Start() {
delegate_->Start();
}
-SessionManagerDelegate::SessionManagerDelegate() : session_manager_(NULL) {
+SessionManagerDelegate::SessionManagerDelegate() {
}
SessionManagerDelegate::~SessionManagerDelegate() {
« no previous file with comments | « components/session_manager/core/session_manager.h ('k') | components/user_manager/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698