Commit 3a9df79c authored by Laís Minchillo's avatar Laís Minchillo Committed by Commit Bot

[aw] Replace 29 with Build.VERSION_CODES.Q

Fix a TODO in code to replace 29 with Build.VERSION_CODES.Q

Bug: 993538
Change-Id: I8b50ffa775912078a2b1b30579ffbeca0129e42c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2007743Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Commit-Queue: Laís Minchillo <laisminchillo@chromium.org>
Auto-Submit: Laís Minchillo <laisminchillo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#734187}
parent e2ca8e6f
......@@ -233,10 +233,8 @@ public class ProxyChangeListener {
return ProxyConfig.DIRECT;
}
// TODO(laisminchillo): replace '29' with 'Build.VERSION_CODES.Q'
// when Android Q is finalized for release
if (Build.VERSION.SDK_INT == 29 && proxyInfo.getHost().equals("localhost")
&& proxyInfo.getPort() == -1) {
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.Q
&& proxyInfo.getHost().equals("localhost") && proxyInfo.getPort() == -1) {
// There's a bug in Android Q's PAC support. If ConnectivityManager
// returns localhost:-1 then use the intent from the PROXY_CHANGE_ACTION
// broadcast to extract the ProxyConfig. See http://crbug.com/993538.
......
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