Commit b24bc132 authored by Joshua Peraza's avatar Joshua Peraza Committed by Chromium LUCI CQ

Update Crashpad to 0f70d9477ea844a7a88c9449d231fc5a71f2cc4e

cce6b30149d3 Optimize calls to std::string::find() and friends for a
             single char
2e066d2e56d0 Use chromeos buildflags
0f70d9477ea8 Fix typo in build target

Change-Id: Ia834a10c6a82cfe40395921c34236b1153a152ff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2626128Reviewed-by: default avatarMark Mentovai <mark@chromium.org>
Commit-Queue: Joshua Peraza <jperaza@chromium.org>
Cr-Commit-Position: refs/heads/master@{#842828}
parent fd90951e
...@@ -2,7 +2,7 @@ Name: Crashpad ...@@ -2,7 +2,7 @@ Name: Crashpad
Short Name: crashpad Short Name: crashpad
URL: https://crashpad.chromium.org/ URL: https://crashpad.chromium.org/
Version: unknown Version: unknown
Revision: 8bf3cdd977a0d6542963c704cadc85e03bbe4e94 Revision: 0f70d9477ea844a7a88c9449d231fc5a71f2cc4e
License: Apache 2.0 License: Apache 2.0
License File: crashpad/LICENSE License File: crashpad/LICENSE
Security Critical: yes Security Critical: yes
......
...@@ -42,7 +42,7 @@ deps = { ...@@ -42,7 +42,7 @@ deps = {
'7bde79cc274d06451bf65ae82c012a5d3e476b5a', '7bde79cc274d06451bf65ae82c012a5d3e476b5a',
'crashpad/third_party/mini_chromium/mini_chromium': 'crashpad/third_party/mini_chromium/mini_chromium':
Var('chromium_git') + '/chromium/mini_chromium@' + Var('chromium_git') + '/chromium/mini_chromium@' +
'c748b289b825056985f3dd3b36dc86c766d787ad', '12ea507eb719a54698e1429e91e84c65284805ab',
'crashpad/third_party/libfuzzer/src': 'crashpad/third_party/libfuzzer/src':
Var('chromium_git') + '/chromium/llvm-project/compiler-rt/lib/fuzzer.git@' + Var('chromium_git') + '/chromium/llvm-project/compiler-rt/lib/fuzzer.git@' +
'fda403cf93ecb8792cb1d061564d89a6553ca020', 'fda403cf93ecb8792cb1d061564d89a6553ca020',
......
...@@ -88,7 +88,7 @@ crashpad_static_library("client") { ...@@ -88,7 +88,7 @@ crashpad_static_library("client") {
"../util", "../util",
] ]
deps = [ "//build:chromeos_buildflags" ] deps = [ "../third_party/mini_chromium:chromeos_buildflags" ]
if (crashpad_is_win) { if (crashpad_is_win) {
libs = [ "rpcrt4.lib" ] libs = [ "rpcrt4.lib" ]
......
...@@ -75,8 +75,8 @@ static_library("handler") { ...@@ -75,8 +75,8 @@ static_library("handler") {
deps = [ deps = [
"../minidump", "../minidump",
"../snapshot", "../snapshot",
"../third_party/mini_chromium:chromeos_buildflags",
"../tools:tool_support", "../tools:tool_support",
"//build:chromeos_buildflags",
] ]
if (crashpad_is_win) { if (crashpad_is_win) {
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
#include "util/string/split_string.h" #include "util/string/split_string.h"
#include "util/synchronization/semaphore.h" #include "util/synchronization/semaphore.h"
#if BUILDFLAG(IS_CHROMEOS_ASH) #if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS)
#include "handler/linux/cros_crash_report_exception_handler.h" #include "handler/linux/cros_crash_report_exception_handler.h"
#endif #endif
...@@ -163,7 +163,7 @@ void Usage(const base::FilePath& me) { ...@@ -163,7 +163,7 @@ void Usage(const base::FilePath& me) {
#endif // OS_LINUX || OS_CHROMEOS || OS_ANDROID #endif // OS_LINUX || OS_CHROMEOS || OS_ANDROID
" --url=URL send crash reports to this Breakpad server URL,\n" " --url=URL send crash reports to this Breakpad server URL,\n"
" only if uploads are enabled for the database\n" " only if uploads are enabled for the database\n"
#if BUILDFLAG(IS_CHROMEOS_ASH) #if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS)
" --use-cros-crash-reporter\n" " --use-cros-crash-reporter\n"
" pass crash reports to /sbin/crash_reporter\n" " pass crash reports to /sbin/crash_reporter\n"
" instead of storing them in the database\n" " instead of storing them in the database\n"
...@@ -174,7 +174,7 @@ void Usage(const base::FilePath& me) { ...@@ -174,7 +174,7 @@ void Usage(const base::FilePath& me) {
" pass the --always_allow_feedback flag to\n" " pass the --always_allow_feedback flag to\n"
" crash_reporter, thus skipping metrics consent\n" " crash_reporter, thus skipping metrics consent\n"
" checks\n" " checks\n"
#endif // BUILDFLAG(IS_CHROMEOS_ASH) #endif // BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS)
#if defined(OS_ANDROID) #if defined(OS_ANDROID)
" --write-minidump-to-log write minidump to log\n" " --write-minidump-to-log write minidump to log\n"
#endif // OS_ANDROID #endif // OS_ANDROID
...@@ -213,11 +213,11 @@ struct Options { ...@@ -213,11 +213,11 @@ struct Options {
bool periodic_tasks; bool periodic_tasks;
bool rate_limit; bool rate_limit;
bool upload_gzip; bool upload_gzip;
#if BUILDFLAG(IS_CHROMEOS_ASH) #if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS)
bool use_cros_crash_reporter = false; bool use_cros_crash_reporter = false;
base::FilePath minidump_dir_for_tests; base::FilePath minidump_dir_for_tests;
bool always_allow_feedback = false; bool always_allow_feedback = false;
#endif // BUILDFLAG(IS_CHROMEOS_ASH) #endif // BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS)
#if defined(ATTACHMENTS_SUPPORTED) #if defined(ATTACHMENTS_SUPPORTED)
std::vector<base::FilePath> attachments; std::vector<base::FilePath> attachments;
#endif // ATTACHMENTS_SUPPORTED #endif // ATTACHMENTS_SUPPORTED
...@@ -577,11 +577,11 @@ int HandlerMain(int argc, ...@@ -577,11 +577,11 @@ int HandlerMain(int argc,
kOptionTraceParentWithException, kOptionTraceParentWithException,
#endif #endif
kOptionURL, kOptionURL,
#if BUILDFLAG(IS_CHROMEOS_ASH) #if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS)
kOptionUseCrosCrashReporter, kOptionUseCrosCrashReporter,
kOptionMinidumpDirForTests, kOptionMinidumpDirForTests,
kOptionAlwaysAllowFeedback, kOptionAlwaysAllowFeedback,
#endif // BUILDFLAG(IS_CHROMEOS_ASH) #endif // BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS)
#if defined(OS_ANDROID) #if defined(OS_ANDROID)
kOptionWriteMinidumpToLog, kOptionWriteMinidumpToLog,
#endif // OS_ANDROID #endif // OS_ANDROID
...@@ -659,7 +659,7 @@ int HandlerMain(int argc, ...@@ -659,7 +659,7 @@ int HandlerMain(int argc,
kOptionTraceParentWithException}, kOptionTraceParentWithException},
#endif // OS_LINUX || OS_CHROMEOS || OS_ANDROID #endif // OS_LINUX || OS_CHROMEOS || OS_ANDROID
{"url", required_argument, nullptr, kOptionURL}, {"url", required_argument, nullptr, kOptionURL},
#if BUILDFLAG(IS_CHROMEOS_ASH) #if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS)
{"use-cros-crash-reporter", {"use-cros-crash-reporter",
no_argument, no_argument,
nullptr, nullptr,
...@@ -672,7 +672,7 @@ int HandlerMain(int argc, ...@@ -672,7 +672,7 @@ int HandlerMain(int argc,
no_argument, no_argument,
nullptr, nullptr,
kOptionAlwaysAllowFeedback}, kOptionAlwaysAllowFeedback},
#endif // BUILDFLAG(IS_CHROMEOS_ASH) #endif // BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS)
#if defined(OS_ANDROID) #if defined(OS_ANDROID)
{"write-minidump-to-log", no_argument, nullptr, kOptionWriteMinidumpToLog}, {"write-minidump-to-log", no_argument, nullptr, kOptionWriteMinidumpToLog},
#endif // OS_ANDROID #endif // OS_ANDROID
...@@ -833,7 +833,7 @@ int HandlerMain(int argc, ...@@ -833,7 +833,7 @@ int HandlerMain(int argc,
options.url = optarg; options.url = optarg;
break; break;
} }
#if BUILDFLAG(IS_CHROMEOS_ASH) #if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS)
case kOptionUseCrosCrashReporter: { case kOptionUseCrosCrashReporter: {
options.use_cros_crash_reporter = true; options.use_cros_crash_reporter = true;
break; break;
...@@ -847,7 +847,7 @@ int HandlerMain(int argc, ...@@ -847,7 +847,7 @@ int HandlerMain(int argc,
options.always_allow_feedback = true; options.always_allow_feedback = true;
break; break;
} }
#endif // BUILDFLAG(IS_CHROMEOS_ASH) #endif // BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS)
#if defined(OS_ANDROID) #if defined(OS_ANDROID)
case kOptionWriteMinidumpToLog: { case kOptionWriteMinidumpToLog: {
options.write_minidump_to_log = true; options.write_minidump_to_log = true;
...@@ -993,7 +993,7 @@ int HandlerMain(int argc, ...@@ -993,7 +993,7 @@ int HandlerMain(int argc,
std::unique_ptr<CrashReportExceptionHandler> exception_handler; std::unique_ptr<CrashReportExceptionHandler> exception_handler;
#endif #endif
#if BUILDFLAG(IS_CHROMEOS_ASH) #if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS)
if (options.use_cros_crash_reporter) { if (options.use_cros_crash_reporter) {
auto cros_handler = std::make_unique<CrosCrashReportExceptionHandler>( auto cros_handler = std::make_unique<CrosCrashReportExceptionHandler>(
database.get(), database.get(),
...@@ -1036,7 +1036,7 @@ int HandlerMain(int argc, ...@@ -1036,7 +1036,7 @@ int HandlerMain(int argc,
false, false,
#endif // OS_LINUX #endif // OS_LINUX
user_stream_sources); user_stream_sources);
#endif // BUILDFLAG(IS_CHROMEOS_ASH) #endif // BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS)
#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) #if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID)
if (options.exception_information_address) { if (options.exception_information_address) {
......
...@@ -318,7 +318,7 @@ bool ProcessSnapshotMinidump::InitializeMiscInfo() { ...@@ -318,7 +318,7 @@ bool ProcessSnapshotMinidump::InitializeMiscInfo() {
#else #else
full_version_ = base::UTF16ToUTF8(info.BuildString); full_version_ = base::UTF16ToUTF8(info.BuildString);
#endif #endif
full_version_ = full_version_.substr(0, full_version_.find(";")); full_version_ = full_version_.substr(0, full_version_.find(';'));
FALLTHROUGH; FALLTHROUGH;
case sizeof(MINIDUMP_MISC_INFO_3): case sizeof(MINIDUMP_MISC_INFO_3):
case sizeof(MINIDUMP_MISC_INFO_2): case sizeof(MINIDUMP_MISC_INFO_2):
......
...@@ -45,3 +45,16 @@ group("build") { ...@@ -45,3 +45,16 @@ group("build") {
public_deps = [ "//third_party/mini_chromium/mini_chromium/build" ] public_deps = [ "//third_party/mini_chromium/mini_chromium/build" ]
} }
} }
group("chromeos_buildflags") {
if (crashpad_is_in_chromium) {
public_deps = [ "//build:chromeos_buildflags" ]
} else if (crashpad_is_standalone || crashpad_is_in_fuchsia) {
public_deps = [ "mini_chromium/build:chromeos_buildflags" ]
} else if (crashpad_is_external) {
public_deps = [ "../../../../mini_chromium/mini_chromium/build:chromeos_buildflags" ]
} else if (crashpad_is_in_dart) {
public_deps = [ "//third_party/mini_chromium/mini_chromium/build:chromeos_buildflags" ]
}
}
...@@ -379,7 +379,7 @@ crashpad_static_library("util") { ...@@ -379,7 +379,7 @@ crashpad_static_library("util") {
] ]
} }
deps = [ "//build:chromeos_buildflags" ] deps = []
if (crashpad_is_linux || crashpad_is_fuchsia || crashpad_is_android) { if (crashpad_is_linux || crashpad_is_fuchsia || crashpad_is_android) {
sources += [ "net/http_transport_socket.cc" ] sources += [ "net/http_transport_socket.cc" ]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment