| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/crash/content/app/breakpad_linux.h" | 8 #include "components/crash/content/app/breakpad_linux.h" |
| 9 | 9 |
| 10 #include <fcntl.h> | 10 #include <fcntl.h> |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 base::android::BuildInfo* android_build_info = | 596 base::android::BuildInfo* android_build_info = |
| 597 base::android::BuildInfo::GetInstance(); | 597 base::android::BuildInfo::GetInstance(); |
| 598 | 598 |
| 599 AndroidLogWriteHorizontalRule(); | 599 AndroidLogWriteHorizontalRule(); |
| 600 __android_log_write(ANDROID_LOG_WARN, kGoogleBreakpad, | 600 __android_log_write(ANDROID_LOG_WARN, kGoogleBreakpad, |
| 601 "Chrome build fingerprint:"); | 601 "Chrome build fingerprint:"); |
| 602 __android_log_write(ANDROID_LOG_WARN, kGoogleBreakpad, | 602 __android_log_write(ANDROID_LOG_WARN, kGoogleBreakpad, |
| 603 android_build_info->package_version_name()); | 603 android_build_info->package_version_name()); |
| 604 __android_log_write(ANDROID_LOG_WARN, kGoogleBreakpad, | 604 __android_log_write(ANDROID_LOG_WARN, kGoogleBreakpad, |
| 605 android_build_info->package_version_code()); | 605 android_build_info->package_version_code()); |
| 606 __android_log_write(ANDROID_LOG_WARN, kGoogleBreakpad, |
| 607 "Google Play services app version:"); |
| 608 __android_log_write(ANDROID_LOG_WARN, kGoogleBreakpad, |
| 609 android_build_info->gms_version_code()); |
| 606 AndroidLogWriteHorizontalRule(); | 610 AndroidLogWriteHorizontalRule(); |
| 607 | 611 |
| 608 if (!is_browser_process && | 612 if (!is_browser_process && |
| 609 android_build_info->sdk_int() >= 18 && | 613 android_build_info->sdk_int() >= 18 && |
| 610 my_strcmp(android_build_info->build_type(), "eng") != 0 && | 614 my_strcmp(android_build_info->build_type(), "eng") != 0 && |
| 611 my_strcmp(android_build_info->build_type(), "userdebug") != 0) { | 615 my_strcmp(android_build_info->build_type(), "userdebug") != 0) { |
| 612 // On JB MR2 and later, the system crash handler displays a dialog. For | 616 // On JB MR2 and later, the system crash handler displays a dialog. For |
| 613 // renderer crashes, this is a bad user experience and so this is disabled | 617 // renderer crashes, this is a bad user experience and so this is disabled |
| 614 // for user builds of Android. | 618 // for user builds of Android. |
| 615 // TODO(cjhopman): There should be some way to recover the crash stack from | 619 // TODO(cjhopman): There should be some way to recover the crash stack from |
| (...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1918 const std::string& gpu_fingerprint) { | 1922 const std::string& gpu_fingerprint) { |
| 1919 g_microdump_info.Get().SetGpuFingerprint(gpu_fingerprint); | 1923 g_microdump_info.Get().SetGpuFingerprint(gpu_fingerprint); |
| 1920 } | 1924 } |
| 1921 #endif // OS_ANDROID | 1925 #endif // OS_ANDROID |
| 1922 | 1926 |
| 1923 bool IsCrashReporterEnabled() { | 1927 bool IsCrashReporterEnabled() { |
| 1924 return g_is_crash_reporter_enabled; | 1928 return g_is_crash_reporter_enabled; |
| 1925 } | 1929 } |
| 1926 | 1930 |
| 1927 } // namespace breakpad | 1931 } // namespace breakpad |
| OLD | NEW |