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

Side by Side Diff: components/crash/content/app/breakpad_linux.cc

Issue 2014693003: Includes GMS version in crash report. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 4 years, 6 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
« no previous file with comments | « base/android/java/src/org/chromium/base/BuildInfo.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « base/android/java/src/org/chromium/base/BuildInfo.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698