commit | c123bd24ec485d19b627d0a17887ec1af9692272 | [log] [tgz] |
---|---|---|
author | Rakina Zata Amni <[email protected]> | Fri Jul 31 19:08:39 2020 |
committer | Commit Bot <[email protected]> | Fri Jul 31 19:08:39 2020 |
tree | aa4a5ab55c586616900a6a7ce44d5c9a2307ba40 | |
parent | 70da1a35ffb31599a6fc87affef07b1a3da009e1 [diff] [blame] |
Add enterprise policy to disable BackForwardCache Allows disabling of BackForwardCache through enterprise policy. Bug: 511340 Change-Id: I1d9830499dc25a8cb987165578d98bea8195bf85 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2329107 Commit-Queue: Rakina Zata Amni <[email protected]> Reviewed-by: Julian Pastarmov <[email protected]> Reviewed-by: Avi Drissman <[email protected]> Reviewed-by: Alexander Timin <[email protected]> Cr-Commit-Position: refs/heads/master@{#793711}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc index 57496bd4..0dab3c2 100644 --- a/chrome/browser/prefs/browser_prefs.cc +++ b/chrome/browser/prefs/browser_prefs.cc
@@ -727,6 +727,10 @@ registry->RegisterIntegerPref(kSameVersionStartupCount, 0); registry->RegisterBooleanPref( policy::policy_prefs::kUserAgentClientHintsEnabled, true); +#if defined(OS_ANDROID) + registry->RegisterBooleanPref(policy::policy_prefs::kBackForwardCacheEnabled, + true); +#endif // defined(OS_ANDROID) // Below this point is for platform-specific and compile-time conditional // calls. Please follow the helper-function-first-then-direct-calls pattern