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

Side by Side Diff: components/browser_watcher/BUILD.gn

Issue 2715903003: Bound the impact of system instability on chrome instability. (Closed)
Patch Set: Address Siggi's comments Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//third_party/protobuf/proto_library.gni") 5 import("//third_party/protobuf/proto_library.gni")
6 6
7 if (is_win) { 7 if (is_win) {
8 proto_library("stability_report_proto") { 8 proto_library("stability_report_proto") {
9 sources = [ 9 sources = [
10 "stability_report.proto", 10 "stability_report.proto",
(...skipping 25 matching lines...) Expand all
36 ] 36 ]
37 deps = [ 37 deps = [
38 ":postmortem_report_collector", 38 ":postmortem_report_collector",
39 ":stability", 39 ":stability",
40 "//base", 40 "//base",
41 "//components/metrics", 41 "//components/metrics",
42 "//third_party/crashpad/crashpad/client", 42 "//third_party/crashpad/crashpad/client",
43 ] 43 ]
44 } 44 }
45 45
46 static_library("postmortem_minidump_writer") { 46 static_library("postmortem_report_collector") {
47 # TODO(manzagop): remove this lib once Crashpad writes the minidumps.
48 sources = [ 47 sources = [
49 "postmortem_minidump_writer.h", 48 "postmortem_minidump_writer.h",
50 "postmortem_minidump_writer_win.cc", 49 "postmortem_minidump_writer_win.cc",
50 "postmortem_report_collector.cc",
51 "postmortem_report_collector.h",
52 "system_session_analyzer_win.cc",
53 "system_session_analyzer_win.h",
51 ] 54 ]
52 deps = [ 55 deps = [
53 ":stability_data", 56 ":stability_data",
54 ":stability_report_proto", 57 ":stability_report_proto",
55 "//base", 58 "//base",
59 "//components/variations",
56 "//third_party/crashpad/crashpad/client", 60 "//third_party/crashpad/crashpad/client",
57 "//third_party/crashpad/crashpad/minidump", 61 "//third_party/crashpad/crashpad/minidump",
58 "//third_party/crashpad/crashpad/util", 62 "//third_party/crashpad/crashpad/util",
59 ] 63 ]
60 } 64 libs = [ "wevtapi.lib" ]
61 65 ldflags = [ "/DELAYLOAD:wevtapi.dll" ] # Only used after unclean shutdowns.
62 static_library("postmortem_report_collector") {
63 sources = [
64 "postmortem_report_collector.cc",
65 "postmortem_report_collector.h",
66 ]
67 deps = [
68 ":postmortem_minidump_writer",
69 ":stability_data",
70 ":stability_report_proto",
71 "//base",
72 "//components/variations",
73 "//third_party/crashpad/crashpad/client",
74 "//third_party/crashpad/crashpad/util",
75 ]
76 } 66 }
77 } 67 }
78 68
79 static_library("stability") { 69 static_library("stability") {
80 sources = [ 70 sources = [
81 "features.cc", 71 "features.cc",
82 "features.h", 72 "features.h",
83 "stability_debugging.cc", 73 "stability_debugging.cc",
84 "stability_debugging.h", 74 "stability_debugging.h",
85 ] 75 ]
(...skipping 10 matching lines...) Expand all
96 } 86 }
97 87
98 if (is_win) { 88 if (is_win) {
99 source_set("unit_tests") { 89 source_set("unit_tests") {
100 testonly = true 90 testonly = true
101 sources = [ 91 sources = [
102 "endsession_watcher_window_win_unittest.cc", 92 "endsession_watcher_window_win_unittest.cc",
103 "exit_code_watcher_win_unittest.cc", 93 "exit_code_watcher_win_unittest.cc",
104 "postmortem_minidump_writer_win_unittest.cc", 94 "postmortem_minidump_writer_win_unittest.cc",
105 "postmortem_report_collector_unittest.cc", 95 "postmortem_report_collector_unittest.cc",
96 "system_session_analyzer_win_unittest.cc",
106 "watcher_client_win_unittest.cc", 97 "watcher_client_win_unittest.cc",
107 "watcher_metrics_provider_win_unittest.cc", 98 "watcher_metrics_provider_win_unittest.cc",
108 "window_hang_monitor_win_unittest.cc", 99 "window_hang_monitor_win_unittest.cc",
109 ] 100 ]
110 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 101 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
111 deps = [ 102 deps = [
112 ":browser_watcher", 103 ":browser_watcher",
113 ":browser_watcher_client", 104 ":browser_watcher_client",
114 ":postmortem_minidump_writer",
115 ":postmortem_report_collector", 105 ":postmortem_report_collector",
116 ":stability_data", 106 ":stability_data",
117 ":stability_report_proto", 107 ":stability_report_proto",
118 "//base", 108 "//base",
119 "//base/test:test_support", 109 "//base/test:test_support",
120 "//testing/gmock", 110 "//testing/gmock",
121 "//testing/gtest", 111 "//testing/gtest",
122 "//third_party/crashpad/crashpad/client", 112 "//third_party/crashpad/crashpad/client",
123 113
124 # TODO(manzagop): remove this lib once Crashpad writes the minidumps. 114 # TODO(manzagop): remove this lib once Crashpad writes the minidumps.
125 "//third_party/crashpad/crashpad/compat", 115 "//third_party/crashpad/crashpad/compat",
126 "//third_party/crashpad/crashpad/minidump", 116 "//third_party/crashpad/crashpad/minidump",
127 "//third_party/crashpad/crashpad/snapshot", 117 "//third_party/crashpad/crashpad/snapshot",
128 "//third_party/crashpad/crashpad/util", 118 "//third_party/crashpad/crashpad/util",
129 ] 119 ]
130 } 120 }
131 121
132 executable("dump_postmortem") { 122 executable("dump_postmortem") {
133 sources = [ 123 sources = [
134 "dump_postmortem_minidump_main_win.cc", 124 "dump_postmortem_minidump_main_win.cc",
135 ] 125 ]
136 deps = [ 126 deps = [
137 ":stability_report_proto", 127 ":stability_report_proto",
138 "//base", 128 "//base",
139 ] 129 ]
140 } 130 }
131
132 executable("fetch_system_session_events") {
133 sources = [
134 "fetch_system_session_events_main_win.cc",
135 ]
136 deps = [
137 ":postmortem_report_collector",
138 "//base",
139 ]
140 }
141 } 141 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698