OOR-CORS: Disabled by default on Android 77 Beta/Stable
Since WebView can not take the Finch configuration at the first run,
this patch disable the OOR-CORS feature by default just in case.
We will enable the OOR-CORS for 100% users via server managed run-time
configuration.
Bug: 991107
Change-Id: I2df481b7ce15b41132ac8c0c9d6fcca7b1ff0b1c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1746127
Reviewed-by: Takashi Toyoshima <[email protected]>
Cr-Commit-Position: refs/branch-heads/3865@{#298}
Cr-Branched-From: 0cdcc6158160790658d1f033d3db873603250124-refs/heads/master@{#681094}
diff --git a/services/network/public/cpp/features.cc b/services/network/public/cpp/features.cc
index d100169..d5a2195 100644
--- a/services/network/public/cpp/features.cc
+++ b/services/network/public/cpp/features.cc
@@ -27,8 +27,15 @@
};
// Out of Blink CORS
-const base::Feature kOutOfBlinkCors{"OutOfBlinkCors",
- base::FEATURE_ENABLED_BY_DEFAULT};
+const base::Feature kOutOfBlinkCors {
+ "OutOfBlinkCors",
+#if defined(OS_ANDROID)
+ base::FEATURE_DISABLED_BY_DEFAULT
+};
+#else
+ base::FEATURE_ENABLED_BY_DEFAULT
+};
+#endif
const base::Feature kReporting{"Reporting", base::FEATURE_ENABLED_BY_DEFAULT};