From: csagan5 <32685696+csagan5@users.noreply.github.com> Date: Sat, 6 Nov 2021 09:46:24 +0100 Subject: Never use HTTP probes for connection detection This patch disables the use of HTTP probes on Android < M devices Connection will be always considered valid on such devices License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html --- .../browser/net/connectivitydetector/ConnectivityDetector.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/android/java/src/org/chromium/chrome/browser/net/connectivitydetector/ConnectivityDetector.java b/chrome/android/java/src/org/chromium/chrome/browser/net/connectivitydetector/ConnectivityDetector.java --- a/chrome/android/java/src/org/chromium/chrome/browser/net/connectivitydetector/ConnectivityDetector.java +++ b/chrome/android/java/src/org/chromium/chrome/browser/net/connectivitydetector/ConnectivityDetector.java @@ -175,7 +175,8 @@ public class ConnectivityDetector implements NetworkChangeNotifier.ConnectionTyp @Override public boolean shouldSkipHttpProbes() { - return false; + // always assume that connection is valid on Android < M + return true; } } -- 2.25.1