Index: chrome/browser/prefs/tracked/pref_hash_browsertest.cc |
diff --git a/chrome/browser/prefs/tracked/pref_hash_browsertest.cc b/chrome/browser/prefs/tracked/pref_hash_browsertest.cc |
index 8fdef23063b3589905cb9cafbaaf2aa9efe86b09..5a8e5ce96173267ccb96e1c7a413b8f162a10af9 100644 |
--- a/chrome/browser/prefs/tracked/pref_hash_browsertest.cc |
+++ b/chrome/browser/prefs/tracked/pref_hash_browsertest.cc |
@@ -228,6 +228,14 @@ class PrefHashBrowserTestBase |
return true; |
} |
+ void SetUpInProcessBrowserTestFixture() override { |
+ ExtensionBrowserTest::SetUpInProcessBrowserTestFixture(); |
+ |
+ // Bots are on a domain, turn off the domain check for settings hardening in |
+ // order to be able to test all SettingsEnforcement groups. |
+ chrome_prefs::DisableDomainCheckForTesting(); |
+ } |
+ |
// In the PRE_ test, find the number of tracked preferences that were |
// initialized and save it to a file to be read back in the main test and used |
// as the total number of tracked preferences. |