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

Unified Diff: components/browser_watcher/BUILD.gn

Issue 2715903003: Bound the impact of system instability on chrome instability. (Closed)
Patch Set: record start timestamp, analysis metric, make log scrape lazy Created 3 years, 10 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/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",
+ ]
+ }
}

Powered by Google App Engine
This is Rietveld 408576698