blob: 6d9612a5ee039dda8dd2f325b2d532ce26fdc077 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
--- components/crash/content/app/crashpad.cc.orig 2018-07-19 00:30:58.065324000 +0200
+++ components/crash/content/app/crashpad.cc 2018-07-19 00:32:11.350482000 +0200
@@ -119,7 +119,7 @@
// as processed by the backend.
DCHECK(browser_process || process_type == "Chrome Installer" ||
process_type == "notification-helper");
-#elif defined(OS_LINUX) || defined(OS_ANDROID)
+#elif defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD)
DCHECK(browser_process);
#else
#error Port.
@@ -184,7 +184,7 @@
// other "main, first process" to initialize things. There is no "relauncher"
// on Windows, so this is synonymous with initial_client.
const bool should_initialize_database_and_set_upload_policy = initial_client;
-#elif defined(OS_LINUX) || defined(OS_ANDROID)
+#elif defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD)
const bool should_initialize_database_and_set_upload_policy = browser_process;
#endif
if (should_initialize_database_and_set_upload_policy) {
@@ -253,7 +253,11 @@
}
void DumpWithoutCrashing() {
+#if defined(OS_BSD)
+ NOTIMPLEMENTED();
+#else
CRASHPAD_SIMULATE_CRASH();
+#endif
}
void GetReports(std::vector<Report>* reports) {
|