Remove Android restriction from flag-dns-over-https.patch

See #429
This commit is contained in:
Eloston
2018-09-12 21:39:14 +00:00
parent 5be96d3ecf
commit d1ef396f0e
+7 -9
View File
@@ -30,27 +30,25 @@ See also: https://tools.ietf.org/id/draft-ietf-doh-dns-over-https-02.txt
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -432,6 +432,11 @@ const FeatureEntry::Choice kChromeHomeSw
switches::kChromeHomeSwipeLogicType, "velocity"},
};
@@ -434,6 +434,11 @@ const FeatureEntry::Choice kChromeHomeSw
#endif // OS_ANDROID
+const FeatureEntry::Choice kDnsOverHttpsChoices[] = {
+ {features::kDnsOverHttpsChoiceDefault, "", ""},
+ {features::kDnsOverHttpsChoiceCloudflare, switches::kDnsOverHttpsServer, "https://1.1.1.1/dns-query"},
+};
+
#endif // OS_ANDROID
const FeatureEntry::Choice kNumRasterThreadsChoices[] = {
@@ -3552,6 +3557,12 @@ const FeatureEntry kFeatureEntries[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kNumRasterThreadsOne, switches::kNumRasterThreads, "1"},
@@ -3552,6 +3557,10 @@ const FeatureEntry kFeatureEntries[] = {
FEATURE_VALUE_TYPE(features::kAsyncDns)},
#endif // defined(OS_ANDROID)
+#if defined(OS_ANDROID)
+ {"enable-dns-over-https", flag_descriptions::kDnsOverHttpsName,
+ flag_descriptions::kDnsOverHttpsDescription, kOsAndroid,
+ flag_descriptions::kDnsOverHttpsDescription, kOsAll,
+ MULTI_VALUE_TYPE(kDnsOverHttpsChoices)},
+#endif // defined(OS_ANDROID)
+
{"enable-overflow-icons-for-media-controls",
flag_descriptions::kOverflowIconsForMediaControlsName,