parent
d3e96e671b
commit
e4b93e8337
@ -0,0 +1,47 @@
|
|||||||
|
diff -up chromium-78.0.3904.70/net/dns/dns_util.cc.gcc-DohUpgradeEntry-nonconst chromium-78.0.3904.70/net/dns/dns_util.cc
|
||||||
|
--- chromium-78.0.3904.70/net/dns/dns_util.cc.gcc-DohUpgradeEntry-nonconst 2019-10-23 11:21:55.805646136 -0400
|
||||||
|
+++ chromium-78.0.3904.70/net/dns/dns_util.cc 2019-10-23 11:23:52.693140706 -0400
|
||||||
|
@@ -139,11 +139,11 @@ struct DohUpgradeEntry {
|
||||||
|
const DnsConfig::DnsOverHttpsServerConfig dns_over_https_config;
|
||||||
|
};
|
||||||
|
|
||||||
|
-const std::vector<const DohUpgradeEntry>& GetDohUpgradeList() {
|
||||||
|
+const std::vector<DohUpgradeEntry>& GetDohUpgradeList() {
|
||||||
|
// The provider names in these entries should be kept in sync with the
|
||||||
|
// DohProviderId histogram suffix list in
|
||||||
|
// tools/metrics/histograms/histograms.xml.
|
||||||
|
- static const base::NoDestructor<std::vector<const DohUpgradeEntry>>
|
||||||
|
+ static const base::NoDestructor<std::vector<DohUpgradeEntry>>
|
||||||
|
upgradable_servers({
|
||||||
|
DohUpgradeEntry(
|
||||||
|
"CleanBrowsingAdult",
|
||||||
|
@@ -222,8 +222,7 @@ const std::vector<const DohUpgradeEntry>
|
||||||
|
std::vector<const DohUpgradeEntry*> GetDohUpgradeEntriesFromNameservers(
|
||||||
|
const std::vector<IPEndPoint>& dns_servers,
|
||||||
|
const std::vector<std::string>& excluded_providers) {
|
||||||
|
- const std::vector<const DohUpgradeEntry>& upgradable_servers =
|
||||||
|
- GetDohUpgradeList();
|
||||||
|
+ const std::vector<DohUpgradeEntry>& upgradable_servers = GetDohUpgradeList();
|
||||||
|
std::vector<const DohUpgradeEntry*> entries;
|
||||||
|
|
||||||
|
for (const auto& server : dns_servers) {
|
||||||
|
@@ -417,8 +416,7 @@ std::vector<DnsConfig::DnsOverHttpsServe
|
||||||
|
GetDohUpgradeServersFromDotHostname(
|
||||||
|
const std::string& dot_server,
|
||||||
|
const std::vector<std::string>& excluded_providers) {
|
||||||
|
- const std::vector<const DohUpgradeEntry>& upgradable_servers =
|
||||||
|
- GetDohUpgradeList();
|
||||||
|
+ const std::vector<DohUpgradeEntry>& upgradable_servers = GetDohUpgradeList();
|
||||||
|
std::vector<DnsConfig::DnsOverHttpsServerConfig> doh_servers;
|
||||||
|
|
||||||
|
if (dot_server.empty())
|
||||||
|
@@ -451,8 +449,7 @@ GetDohUpgradeServersFromNameservers(
|
||||||
|
|
||||||
|
std::string GetDohProviderIdForHistogramFromDohConfig(
|
||||||
|
const DnsConfig::DnsOverHttpsServerConfig& doh_server) {
|
||||||
|
- const std::vector<const DohUpgradeEntry>& upgradable_servers =
|
||||||
|
- GetDohUpgradeList();
|
||||||
|
+ const std::vector<DohUpgradeEntry>& upgradable_servers = GetDohUpgradeList();
|
||||||
|
for (const auto& upgrade_entry : upgradable_servers) {
|
||||||
|
if (doh_server.server_template ==
|
||||||
|
upgrade_entry.dns_over_https_config.server_template) {
|
Loading…
Reference in new issue