Reset the kAlternateErrorPages preference to its default value
Since the corresponding setting was removed during the privacy
settings redesign. We also back up its old value in case the
redesign is rolled back.
See https://docs.google.com/document/d/1gJVRKDO14ztyPyqiQpYKXPhmHyu9AgDh9v2nzd7yWaQ/
for the background.
Bug: 1062698
Change-Id: I25cfddaec4646d2a588855c81cad36bfa6a5c590
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2107986
Commit-Queue: Dominic Battré <[email protected]>
Auto-Submit: Martin Šrámek <[email protected]>
Reviewed-by: Dominic Battré <[email protected]>
Reviewed-by: Matt Menke <[email protected]>
Cr-Commit-Position: refs/heads/master@{#753167}
diff --git a/chrome/browser/net/dns_util.h b/chrome/browser/net/dns_util.h
index af7fb17..e1e0305e 100644
--- a/chrome/browser/net/dns_util.h
+++ b/chrome/browser/net/dns_util.h
@@ -7,6 +7,9 @@
#include <string>
+class PrefRegistrySimple;
+class PrefService;
+
namespace chrome_browser_net {
// Returns true if there are any active machine level policies or if the machine
@@ -59,6 +62,18 @@
kMaxValue = kSecureByEnterprisePolicy,
};
+// Registers the backup preference required for the DNS probes setting reset.
+// TODO(crbug.com/1062698): Remove this once the privacy settings redesign
+// is fully launched.
+void RegisterDNSProbesSettingBackupPref(PrefRegistrySimple* registry);
+
+// Backs up the unneeded preference controlling DNS and captive portal probes
+// once the privacy settings redesign is enabled, or restores the backup
+// in case the feature is rolled back.
+// TODO(crbug.com/1062698): Remove this once the privacy settings redesign
+// is fully launched.
+void MigrateDNSProbesSettingToOrFromBackup(PrefService* prefs);
+
} // namespace chrome_browser_net
#endif // CHROME_BROWSER_NET_DNS_UTIL_H_