Remove RunAllFlashInAllowMode from the set of supported policies
Flash has been deprecated in Chrome 88 and since then no policy can help
to bring it back. This policy was incorrectly left present although it has
no effect whatsoever.
BUG=1189317
Change-Id: I7e2b36651f6f417201777c37a057d527b75f67d5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2778200
Auto-Submit: Julian Pastarmov <[email protected]>
Reviewed-by: Gabriel Charette <[email protected]>
Reviewed-by: Tommy Li <[email protected]>
Reviewed-by: Yann Dago <[email protected]>
Commit-Queue: Julian Pastarmov <[email protected]>
Cr-Commit-Position: refs/heads/master@{#865767}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 293cc51..6e24a5dd 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -555,6 +555,11 @@
"extensions.pinned_extension_migration";
#endif
+#if BUILDFLAG(ENABLE_PLUGINS)
+// Deprecated 03/2021
+const char kRunAllFlashInAllowMode[] = "plugins.run_all_flash_in_allow_mode";
+#endif
+
// Register local state used only for migration (clearing or moving to a new
// key).
void RegisterLocalStatePrefsForMigration(PrefRegistrySimple* registry) {
@@ -667,6 +672,10 @@
registry->RegisterStringPref(enterprise_connectors::kDeviceTrustPublicKeyPref,
std::string());
#endif
+
+#if BUILDFLAG(ENABLE_PLUGINS)
+ registry->RegisterBooleanPref(kRunAllFlashInAllowMode, false);
+#endif
}
} // namespace
@@ -1357,6 +1366,11 @@
profile_prefs->ClearPref(enterprise_connectors::kDeviceTrustPublicKeyPref);
#endif
+#if BUILDFLAG(ENABLE_PLUGINS)
+ // Added 03/2021
+ profile_prefs->ClearPref(kRunAllFlashInAllowMode);
+#endif
+
// Please don't delete the following line. It is used by PRESUBMIT.py.
// END_MIGRATE_OBSOLETE_PROFILE_PREFS
}