| Index: components/browser_watcher/BUILD.gn
|
| diff --git a/components/browser_watcher/BUILD.gn b/components/browser_watcher/BUILD.gn
|
| index 2e831c9c8b1d370dc280031ca2bc6089882a08f3..34ce6d499e688bb19221d7c3977a4f56df0617a8 100644
|
| --- a/components/browser_watcher/BUILD.gn
|
| +++ b/components/browser_watcher/BUILD.gn
|
| @@ -68,6 +68,7 @@ if (is_win) {
|
| ":postmortem_minidump_writer",
|
| ":stability_data",
|
| ":stability_report_proto",
|
| + ":system_session_analyzer",
|
| "//base",
|
| "//components/variations",
|
| "//third_party/crashpad/crashpad/client",
|
| @@ -96,6 +97,18 @@ static_library("stability_data") {
|
| }
|
|
|
| if (is_win) {
|
| + static_library("system_session_analyzer") {
|
| + sources = [
|
| + "system_session_analyzer_win.cc",
|
| + "system_session_analyzer_win.h",
|
| + ]
|
| + deps = [
|
| + "//base",
|
| + ]
|
| + libs = [ "wevtapi.lib" ]
|
| + ldflags = [ "/DELAYLOAD:wevtapi.dll" ] # Only used after unclean shutdowns.
|
| + }
|
| +
|
| source_set("unit_tests") {
|
| testonly = true
|
| sources = [
|
| @@ -103,6 +116,7 @@ if (is_win) {
|
| "exit_code_watcher_win_unittest.cc",
|
| "postmortem_minidump_writer_win_unittest.cc",
|
| "postmortem_report_collector_unittest.cc",
|
| + "system_session_analyzer_win_unittest.cc",
|
| "watcher_client_win_unittest.cc",
|
| "watcher_metrics_provider_win_unittest.cc",
|
| "window_hang_monitor_win_unittest.cc",
|
| @@ -115,6 +129,7 @@ if (is_win) {
|
| ":postmortem_report_collector",
|
| ":stability_data",
|
| ":stability_report_proto",
|
| + ":system_session_analyzer",
|
| "//base",
|
| "//base/test:test_support",
|
| "//testing/gmock",
|
| @@ -138,4 +153,14 @@ if (is_win) {
|
| "//base",
|
| ]
|
| }
|
| +
|
| + executable("fetch_system_session_events") {
|
| + sources = [
|
| + "fetch_system_session_events_main_win.cc",
|
| + ]
|
| + deps = [
|
| + ":system_session_analyzer",
|
| + "//base",
|
| + ]
|
| + }
|
| }
|
|
|