diff options
author | siggi <siggi@chromium.org> | 2015-01-14 12:43:38 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-14 20:44:40 +0000 |
commit | 1ab69a5ac8b732e6f5a335e8c09e726ef32d80ca (patch) | |
tree | 1018d4ad97c64c0e5555366d2bf783fa67463d61 | |
parent | 29b1f07f9291ca0358117efb691cae9ae6ded989 (diff) | |
download | chromium_src-1ab69a5ac8b732e6f5a335e8c09e726ef32d80ca.zip chromium_src-1ab69a5ac8b732e6f5a335e8c09e726ef32d80ca.tar.gz chromium_src-1ab69a5ac8b732e6f5a335e8c09e726ef32d80ca.tar.bz2 |
Record mode of endsession in watcher.
R=erikwright@chromium.org
BUG=412384
Review URL: https://codereview.chromium.org/846383003
Cr-Commit-Position: refs/heads/master@{#311539}
-rw-r--r-- | chrome/chrome_watcher/chrome_watcher_main.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/chrome_watcher/chrome_watcher_main.cc b/chrome/chrome_watcher/chrome_watcher_main.cc index f167daa..4719d3d 100644 --- a/chrome/chrome_watcher/chrome_watcher_main.cc +++ b/chrome/chrome_watcher/chrome_watcher_main.cc @@ -116,6 +116,16 @@ void BrowserMonitor::OnEndSession(LPARAM lparam) { DCHECK_EQ(main_thread_, base::MessageLoopProxy::current()); exit_funnel_.RecordEvent(L"WatcherLogoff"); + if (lparam & ENDSESSION_CLOSEAPP) + exit_funnel_.RecordEvent(L"ES_CloseApp"); + if (lparam & ENDSESSION_CRITICAL) + exit_funnel_.RecordEvent(L"ES_Critical"); + if (lparam & ENDSESSION_LOGOFF) + exit_funnel_.RecordEvent(L"ES_Logoff"); + const LPARAM kKnownBits = + ENDSESSION_CLOSEAPP | ENDSESSION_CRITICAL | ENDSESSION_LOGOFF; + if (lparam & ~kKnownBits) + exit_funnel_.RecordEvent(L"ES_Other"); // Belt-and-suspenders; make sure our message loop exits ASAP. if (browser_exited_) |