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