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

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

Issue 2416253004: ash: Use session_manager::SessionState (Closed)
Patch Set: add comment about session state in SessionStaetDelegateChromeos 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
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 b9295a160a1ea3f40869b0872e7cfc203fac7f94..f1e4d5d2b722825207d2f7b49f4e246779ed132f 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_(SESSION_STATE_UNKNOWN) {
+SessionManager::SessionManager() : session_state_(SessionState::UNKNOWN) {
DCHECK(!SessionManager::Get());
SessionManager::SetInstance(this);
}
@@ -28,7 +28,7 @@ SessionManager* SessionManager::Get() {
}
void SessionManager::SetSessionState(SessionState state) {
- VLOG(1) << "Changing session state to: " << state;
+ VLOG(1) << "Changing session state to: " << static_cast<int>(state);
if (session_state_ != state) {
// TODO(nkostylev): Notify observers about the state change.
« no previous file with comments | « components/session_manager/core/session_manager.h ('k') | components/session_manager/session_manager_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698