Commit 1e3a10a2 authored by Nate Fischer's avatar Nate Fischer Committed by Chromium LUCI CQ

Android: inline deprecated BuildInfo methods...

Android: inline deprecated BuildInfo methods (/content/public/android/java/src/org/chromium/content/browser/selection)

No change to logic. This inlines BuildInfo.isAtLeast{Q,R} and
BuildInfo.targetsAtLeast{Q,R} (and their C++ equivalents) in
/content/public/android/java/src/org/chromium/content/browser/selection.

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

Bug: 1106920
Test: autoninja -C out/Default monochrome_public_apk
Change-Id: Ia6d519d756b84bc8b116bfc0b9bf1dabd025cc40
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2575385
Auto-Submit: Nate Fischer <ntfschr@chromium.org>
Reviewed-by: default avatarShimi Zhang <ctzsm@chromium.org>
Commit-Queue: Shimi Zhang <ctzsm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#833888}
parent 439b7350
......@@ -38,7 +38,6 @@ import android.view.textclassifier.TextClassifier;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import org.chromium.base.BuildInfo;
import org.chromium.base.Log;
import org.chromium.base.PackageManagerUtils;
import org.chromium.base.UserData;
......@@ -1447,7 +1446,7 @@ public class SelectionPopupControllerImpl extends ActionModeCallbackHelper
@VisibleForTesting
/* package */ void performHapticFeedback() {
if (BuildInfo.isAtLeastQ() && mView != null) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q && mView != null) {
mView.performHapticFeedback(HapticFeedbackConstants.TEXT_HANDLE_MOVE);
}
}
......
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