diff options
author | stevenjb <stevenjb@chromium.org> | 2014-12-10 12:47:56 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-10 20:48:28 +0000 |
commit | 5a38680a62365eb43bc7b9e1f7eaef7bdb7ba37b (patch) | |
tree | b233ba60f64b0b76f02698b446d166ae4951289d /chromeos/login | |
parent | 08496f678f346408d0eade0260f56a36a3d94543 (diff) | |
download | chromium_src-5a38680a62365eb43bc7b9e1f7eaef7bdb7ba37b.zip chromium_src-5a38680a62365eb43bc7b9e1f7eaef7bdb7ba37b.tar.gz chromium_src-5a38680a62365eb43bc7b9e1f7eaef7bdb7ba37b.tar.bz2 |
DeviceEventLog cleanup
This CL does the following:
* Fixes the formatting for the network log in chrome://network
* Adds a LOGIN type for login events
* Uses a string for 'type' in GetString to allow multiple types (or non- types) to be passed)
Add login type, use type strings in GetAsType
BUG=293739
Review URL: https://codereview.chromium.org/784223003
Cr-Commit-Position: refs/heads/master@{#307753}
Diffstat (limited to 'chromeos/login')
-rw-r--r-- | chromeos/login/login_state.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chromeos/login/login_state.cc b/chromeos/login/login_state.cc index ea63c8c..7ae1a25 100644 --- a/chromeos/login/login_state.cc +++ b/chromeos/login/login_state.cc @@ -8,6 +8,7 @@ #include "base/logging.h" #include "base/sys_info.h" #include "chromeos/chromeos_switches.h" +#include "chromeos/device_event_log.h" namespace chromeos { @@ -63,14 +64,14 @@ void LoginState::SetLoggedInStateAndPrimaryUser( const std::string& primary_user_hash) { DCHECK(type != LOGGED_IN_USER_NONE); primary_user_hash_ = primary_user_hash; - VLOG(1) << "LoggedInStateUser: " << primary_user_hash; + LOGIN_LOG(EVENT) << "LoggedInStateUser: " << primary_user_hash; SetLoggedInState(state, type); } void LoginState::SetLoggedInState(LoggedInState state, LoggedInUserType type) { if (state == logged_in_state_ && type == logged_in_user_type_) return; - VLOG(1) << "LoggedInState: " << state << " UserType: " << type; + LOGIN_LOG(EVENT) << "LoggedInState: " << state << " UserType: " << type; logged_in_state_ = state; logged_in_user_type_ = type; NotifyObservers(); |