[Private Network Access] Add feature switch for reducing longest waiting time for PNA preflight response.
Some servers never respond to the preflight requests which makes the preflight request wait forever and the main request never send. While PNA preflight is currently under warning only mode, we would like to reduce the impact for users, so that we added a special shorter timeout limit (200 milliseconds) to PNA preflight requests previously. However, several user reports show that they are willing to have the possibility to remove the special limit and have a full-functional test of the usage.
Bug: 1340099
Change-Id: I53d6e5dc78786ca04f40cf262310007d6369d2a5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3820004
Reviewed-by: Matt Menke <[email protected]>
Commit-Queue: Yifan Luo <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1034058}
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index da3fe20e..c1c5b2f1 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -1191,6 +1191,14 @@
"for the request to proceed. See also: "
"https://developer.chrome.com/blog/private-network-access-preflight/";
+const char kPrivateNetworkAccessPreflightShortTimeoutName[] =
+ "Reduce waiting time for Private Network Access preflights response";
+const char kPrivateNetworkAccessPreflightShortTimeoutDescription[] =
+ "Reduce the waiting time for Private Network Access preflights to 200 "
+ "milliseconds. The default timeout period for requests is 5 minutes."
+ "See also: "
+ "https://developer.chrome.com/blog/private-network-access-preflight/";
+
const char kDeprecateAltClickName[] =
"Enable Alt+Click deprecation notifications";
const char kDeprecateAltClickDescription[] =