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

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

Issue 2715903003: Bound the impact of system instability on chrome instability. (Closed)
Patch Set: Merge fixups 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 "postmortem_report_extractor.cc",
53 "postmortem_report_extractor.h",
54 "system_session_analyzer_win.cc",
55 "system_session_analyzer_win.h",
51 ] 56 ]
52 deps = [ 57 deps = [
53 ":stability_data", 58 ":stability_data",
54 ":stability_report_proto", 59 ":stability_report_proto",
55 "//base", 60 "//base",
61 "//components/variations",
56 "//third_party/crashpad/crashpad/client", 62 "//third_party/crashpad/crashpad/client",
57 "//third_party/crashpad/crashpad/minidump", 63 "//third_party/crashpad/crashpad/minidump",
58 "//third_party/crashpad/crashpad/util", 64 "//third_party/crashpad/crashpad/util",
59 ] 65 ]
60 } 66 libs = [ "wevtapi.lib" ]
61 67 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 "postmortem_report_extractor.cc",
67 "postmortem_report_extractor.h",
68 ]
69 deps = [
70 ":postmortem_minidump_writer",
71 ":stability_data",
72 ":stability_report_proto",
73 "//base",
74 "//components/variations",
75 "//third_party/crashpad/crashpad/client",
76 "//third_party/crashpad/crashpad/util",
77 ]
78 } 68 }
79 } 69 }
80 70
81 static_library("stability") { 71 static_library("stability") {
82 sources = [ 72 sources = [
83 "features.cc", 73 "features.cc",
84 "features.h", 74 "features.h",
85 "stability_debugging.cc", 75 "stability_debugging.cc",
86 "stability_debugging.h", 76 "stability_debugging.h",
87 ] 77 ]
(...skipping 10 matching lines...) Expand all
98 } 88 }
99 89
100 if (is_win) { 90 if (is_win) {
101 source_set("unit_tests") { 91 source_set("unit_tests") {
102 testonly = true 92 testonly = true
103 sources = [ 93 sources = [
104 "endsession_watcher_window_win_unittest.cc", 94 "endsession_watcher_window_win_unittest.cc",
105 "exit_code_watcher_win_unittest.cc", 95 "exit_code_watcher_win_unittest.cc",
106 "postmortem_minidump_writer_win_unittest.cc", 96 "postmortem_minidump_writer_win_unittest.cc",
107 "postmortem_report_collector_unittest.cc", 97 "postmortem_report_collector_unittest.cc",
98 "system_session_analyzer_win_unittest.cc",
108 "watcher_client_win_unittest.cc", 99 "watcher_client_win_unittest.cc",
109 "watcher_metrics_provider_win_unittest.cc", 100 "watcher_metrics_provider_win_unittest.cc",
110 "window_hang_monitor_win_unittest.cc", 101 "window_hang_monitor_win_unittest.cc",
111 ] 102 ]
112 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 103 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
113 deps = [ 104 deps = [
114 ":browser_watcher", 105 ":browser_watcher",
115 ":browser_watcher_client", 106 ":browser_watcher_client",
116 ":postmortem_minidump_writer",
117 ":postmortem_report_collector", 107 ":postmortem_report_collector",
118 ":stability_data", 108 ":stability_data",
119 ":stability_report_proto", 109 ":stability_report_proto",
120 "//base", 110 "//base",
121 "//base/test:test_support", 111 "//base/test:test_support",
122 "//testing/gmock", 112 "//testing/gmock",
123 "//testing/gtest", 113 "//testing/gtest",
124 "//third_party/crashpad/crashpad/client", 114 "//third_party/crashpad/crashpad/client",
125 115
126 # TODO(manzagop): remove this lib once Crashpad writes the minidumps. 116 # TODO(manzagop): remove this lib once Crashpad writes the minidumps.
127 "//third_party/crashpad/crashpad/compat", 117 "//third_party/crashpad/crashpad/compat",
128 "//third_party/crashpad/crashpad/minidump", 118 "//third_party/crashpad/crashpad/minidump",
129 "//third_party/crashpad/crashpad/snapshot", 119 "//third_party/crashpad/crashpad/snapshot",
130 "//third_party/crashpad/crashpad/util", 120 "//third_party/crashpad/crashpad/util",
131 ] 121 ]
132 } 122 }
133 123
134 executable("dump_postmortem") { 124 executable("dump_postmortem") {
135 sources = [ 125 sources = [
136 "dump_postmortem_minidump_main_win.cc", 126 "dump_postmortem_minidump_main_win.cc",
137 ] 127 ]
138 deps = [ 128 deps = [
139 ":stability_report_proto", 129 ":stability_report_proto",
140 "//base", 130 "//base",
141 ] 131 ]
142 } 132 }
133
134 executable("fetch_system_session_events") {
135 sources = [
136 "fetch_system_session_events_main_win.cc",
137 ]
138 deps = [
139 ":postmortem_report_collector",
140 "//base",
141 ]
142 }
143 } 143 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698