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

Unified Diff: components/browser_watcher/BUILD.gn

Issue 2128683002: Collect unclean shutdown debug information (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tracker
Patch Set: Minimal collection to proto Created 4 years, 4 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 883daece472ef5a8e9064c040f27a064d18a4e42..743a36919bfc44c53302b534dc387b13844ba3c6 100644
--- a/components/browser_watcher/BUILD.gn
+++ b/components/browser_watcher/BUILD.gn
@@ -2,6 +2,14 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//third_party/protobuf/proto_library.gni")
scottmg 2016/08/03 22:47:06 So glad we don't have to do gyp too! :)
manzagop (departed) 2016/08/10 15:59:51 Totally!
+
+proto_library("stability_report_proto") {
+ sources = [
+ "stability_report.proto",
+ ]
+}
+
static_library("browser_watcher") {
# This is a separate lib to minimize the dependencies for its
# hosting binary "chrome_watcher.dll".
@@ -12,10 +20,15 @@ static_library("browser_watcher") {
"exit_code_watcher_win.h",
"exit_funnel_win.cc",
"exit_funnel_win.h",
+ "postmortem.cc",
+ "postmortem.h",
+ "postmortem_minidump_writer.h",
+ "postmortem_minidump_writer_win.cc",
"window_hang_monitor_win.cc",
"window_hang_monitor_win.h",
]
deps = [
+ ":stability_report_proto",
"//base",
]
}
@@ -39,6 +52,8 @@ source_set("unit_tests") {
"endsession_watcher_window_win_unittest.cc",
"exit_code_watcher_win_unittest.cc",
"exit_funnel_win_unittest.cc",
+ "postmortem_minidump_writer_win_unittest.cc",
+ "postmortem_unittest.cc",
"watcher_client_win_unittest.cc",
"watcher_metrics_provider_win_unittest.cc",
"window_hang_monitor_win_unittest.cc",
@@ -47,8 +62,10 @@ source_set("unit_tests") {
deps = [
":browser_watcher",
":browser_watcher_client",
+ ":stability_report_proto",
"//base",
"//base/test:test_support",
+ "//testing/gmock",
"//testing/gtest",
]
}

Powered by Google App Engine
This is Rietveld 408576698