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

Unified Diff: chrome/chrome_watcher/chrome_watcher_main.cc

Issue 846383003: Record mode of endsession in watcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/chrome_watcher/chrome_watcher_main.cc
diff --git a/chrome/chrome_watcher/chrome_watcher_main.cc b/chrome/chrome_watcher/chrome_watcher_main.cc
index f167daadd31ea41b9ae358729688ef04ef049cc9..4719d3d8572dcfadefd05bcd3762d8cd2982a300 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_)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698