Commit 4ef9d510 authored by Nate Fischer's avatar Nate Fischer Committed by Chromium LUCI CQ

Android: inline deprecated BuildInfo methods (/media/audio)

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

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=olka@chromium.org

Bug: 1106920
Test: autoninja -C out/Default monochrome_public_apk
Change-Id: Ife2dbda7b4d444f59df1dfc5be3f25cc269ad827
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2575737
Auto-Submit: Nate Fischer <ntfschr@chromium.org>
Reviewed-by: default avatarOlga Sharonova <olka@chromium.org>
Commit-Queue: Olga Sharonova <olka@chromium.org>
Cr-Commit-Position: refs/heads/master@{#835128}
parent 5ae0ff82
......@@ -487,7 +487,8 @@ bool AudioManagerAndroid::UseAAudio() {
if (!base::FeatureList::IsEnabled(features::kUseAAudioDriver))
return false;
if (!base::android::BuildInfo::GetInstance()->is_at_least_q()) {
if (base::android::BuildInfo::GetInstance()->sdk_int() <
base::android::SDK_VERSION_Q) {
// We need APIs that weren't added until API Level 28. Also, AAudio crashes
// on Android P, so only consider Q and above.
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