Commit 56a5c03e authored by Nate Fischer's avatar Nate Fischer Committed by Chromium LUCI CQ

Android: inline deprecated BuildInfo methods (/components/crash/core/app)

No change to logic. This inlines BuildInfo.isAtLeast{Q,R} and
BuildInfo.targetsAtLeast{Q,R} (and their C++ equivalents) in
/components/crash/core/app.

The methods themselves will be removed in a follow-up CL once all call
sites have been removed.

This CL was uploaded by git cl split.

R=tiborg@chromium.org

Bug: 1106920
Test: autoninja -C out/Default monochrome_public_apk
Change-Id: Ic0e31127c5fb8b08f4df6950fa62f71726907567
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2575053
Auto-Submit: Nate Fischer <ntfschr@chromium.org>
Reviewed-by: default avatarTibor Goldschwendt <tiborg@chromium.org>
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#833903}
parent 97469f14
......@@ -295,7 +295,8 @@ bool GetHandlerTrampoline(std::string* handler_trampoline,
std::string* handler_library) {
// The linker doesn't support loading executables passed on its command
// line until Q.
if (!base::android::BuildInfo::GetInstance()->is_at_least_q()) {
if (base::android::BuildInfo::GetInstance()->sdk_int() <
base::android::SDK_VERSION_Q) {
return false;
}
......
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