From d1ef396f0e25f25b3512e5207e442deea443e4d3 Mon Sep 17 00:00:00 2001 From: Eloston Date: Wed, 12 Sep 2018 21:39:14 +0000 Subject: [PATCH] Remove Android restriction from flag-dns-over-https.patch See #429 --- patches/bromite/flag-dns-over-https.patch | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/patches/bromite/flag-dns-over-https.patch b/patches/bromite/flag-dns-over-https.patch index 97764a4f..8588424c 100644 --- a/patches/bromite/flag-dns-over-https.patch +++ b/patches/bromite/flag-dns-over-https.patch @@ -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,