| 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 #define SYS_SYSCALL_ENTRYPOINT "playground$syscallEntryPoint" | 7 #define SYS_SYSCALL_ENTRYPOINT "playground$syscallEntryPoint" |
| 8 | 8 |
| 9 #include "chrome/app/breakpad_linux.h" | 9 #include "chrome/app/breakpad_linux.h" |
| 10 | 10 |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 | 425 |
| 426 __android_log_write(ANDROID_LOG_WARN, kGoogleBreakpad, | 426 __android_log_write(ANDROID_LOG_WARN, kGoogleBreakpad, |
| 427 "### ### ### ### ### ### ### ### ### ### ### ### ###"); | 427 "### ### ### ### ### ### ### ### ### ### ### ### ###"); |
| 428 __android_log_write(ANDROID_LOG_WARN, kGoogleBreakpad, | 428 __android_log_write(ANDROID_LOG_WARN, kGoogleBreakpad, |
| 429 "Chrome build fingerprint:"); | 429 "Chrome build fingerprint:"); |
| 430 __android_log_write(ANDROID_LOG_WARN, kGoogleBreakpad, | 430 __android_log_write(ANDROID_LOG_WARN, kGoogleBreakpad, |
| 431 android_build_info->package_version_name()); | 431 android_build_info->package_version_name()); |
| 432 __android_log_write(ANDROID_LOG_WARN, kGoogleBreakpad, | 432 __android_log_write(ANDROID_LOG_WARN, kGoogleBreakpad, |
| 433 android_build_info->package_version_code()); | 433 android_build_info->package_version_code()); |
| 434 __android_log_write(ANDROID_LOG_WARN, kGoogleBreakpad, | 434 __android_log_write(ANDROID_LOG_WARN, kGoogleBreakpad, |
| 435 CHROME_SYMBOLS_ID); | 435 CHROME_BUILD_ID); |
| 436 __android_log_write(ANDROID_LOG_WARN, kGoogleBreakpad, | 436 __android_log_write(ANDROID_LOG_WARN, kGoogleBreakpad, |
| 437 "### ### ### ### ### ### ### ### ### ### ### ### ###"); | 437 "### ### ### ### ### ### ### ### ### ### ### ### ###"); |
| 438 return false; | 438 return false; |
| 439 } | 439 } |
| 440 #endif | 440 #endif |
| 441 | 441 |
| 442 bool CrashDone(const MinidumpDescriptor& minidump, | 442 bool CrashDone(const MinidumpDescriptor& minidump, |
| 443 const bool upload, | 443 const bool upload, |
| 444 const bool succeeded) { | 444 const bool succeeded) { |
| 445 // WARNING: this code runs in a compromised context. It may not call into | 445 // WARNING: this code runs in a compromised context. It may not call into |
| (...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1460 void InitNonBrowserCrashReporterForAndroid(int minidump_fd) { | 1460 void InitNonBrowserCrashReporterForAndroid(int minidump_fd) { |
| 1461 const CommandLine* command_line = CommandLine::ForCurrentProcess(); | 1461 const CommandLine* command_line = CommandLine::ForCurrentProcess(); |
| 1462 if (command_line->HasSwitch(switches::kEnableCrashReporter)) | 1462 if (command_line->HasSwitch(switches::kEnableCrashReporter)) |
| 1463 EnableNonBrowserCrashDumping(minidump_fd); | 1463 EnableNonBrowserCrashDumping(minidump_fd); |
| 1464 } | 1464 } |
| 1465 #endif // OS_ANDROID | 1465 #endif // OS_ANDROID |
| 1466 | 1466 |
| 1467 bool IsCrashReporterEnabled() { | 1467 bool IsCrashReporterEnabled() { |
| 1468 return g_is_crash_reporter_enabled; | 1468 return g_is_crash_reporter_enabled; |
| 1469 } | 1469 } |
| OLD | NEW |