OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // For linux_syscall_support.h. This makes it safe to call embedded system | 5 // For linux_syscall_support.h. This makes it safe to call embedded system |
6 // calls when in seccomp mode. | 6 // calls when in seccomp mode. |
7 | 7 |
8 #include "chrome/app/breakpad_linux.h" | 8 #include "chrome/app/breakpad_linux.h" |
9 | 9 |
10 #include <fcntl.h> | 10 #include <fcntl.h> |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // where we either a) know the call cannot fail, or b) there is nothing we | 67 // where we either a) know the call cannot fail, or b) there is nothing we |
68 // can do when a call fails, we mark the return code as ignored. This avoids | 68 // can do when a call fails, we mark the return code as ignored. This avoids |
69 // spurious compiler warnings. | 69 // spurious compiler warnings. |
70 #define IGNORE_RET(x) do { if (x); } while (0) | 70 #define IGNORE_RET(x) do { if (x); } while (0) |
71 | 71 |
72 using google_breakpad::ExceptionHandler; | 72 using google_breakpad::ExceptionHandler; |
73 using google_breakpad::MinidumpDescriptor; | 73 using google_breakpad::MinidumpDescriptor; |
74 | 74 |
75 namespace { | 75 namespace { |
76 | 76 |
| 77 #if !defined(OS_CHROMEOS) |
77 const char kUploadURL[] = "https://clients2.google.com/cr/report"; | 78 const char kUploadURL[] = "https://clients2.google.com/cr/report"; |
| 79 #endif |
78 | 80 |
79 bool g_is_crash_reporter_enabled = false; | 81 bool g_is_crash_reporter_enabled = false; |
80 uint64_t g_process_start_time = 0; | 82 uint64_t g_process_start_time = 0; |
81 char* g_crash_log_path = NULL; | 83 char* g_crash_log_path = NULL; |
82 ExceptionHandler* g_breakpad = NULL; | 84 ExceptionHandler* g_breakpad = NULL; |
83 | 85 |
84 #if defined(ADDRESS_SANITIZER) | 86 #if defined(ADDRESS_SANITIZER) |
85 const char* g_asan_report_str = NULL; | 87 const char* g_asan_report_str = NULL; |
86 #endif | 88 #endif |
87 #if defined(OS_ANDROID) | 89 #if defined(OS_ANDROID) |
(...skipping 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1502 } else { | 1504 } else { |
1503 EnableNonBrowserCrashDumping(minidump_fd); | 1505 EnableNonBrowserCrashDumping(minidump_fd); |
1504 } | 1506 } |
1505 } | 1507 } |
1506 } | 1508 } |
1507 #endif // OS_ANDROID | 1509 #endif // OS_ANDROID |
1508 | 1510 |
1509 bool IsCrashReporterEnabled() { | 1511 bool IsCrashReporterEnabled() { |
1510 return g_is_crash_reporter_enabled; | 1512 return g_is_crash_reporter_enabled; |
1511 } | 1513 } |
OLD | NEW |