Add enterprise policy to re-enable Web Components v0
The Web Components V0 APIs were deprecated in August, 2018, in [1],
and are being removed in M80. For those enterprises that need
additional time, this new policy will enable the features to be
re-enabled through M84. After M84, the policy will be removed, and
the features will be disabled. For overall context on this removal,
including motivation and ways to test/upgrade, see [2].
[1] https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/h-JwMiPUnuU/sl79aLoLBQAJ
[2] https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade
Bug: 911943
Change-Id: Iddf4c8294f19831705bf145b6840400adcd4baed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1888598
Reviewed-by: Owen Min <[email protected]>
Reviewed-by: Avi Drissman <[email protected]>
Reviewed-by: Daniel Cheng <[email protected]>
Commit-Queue: Mason Freed <[email protected]>
Auto-Submit: Mason Freed <[email protected]>
Cr-Commit-Position: refs/heads/master@{#712762}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 623a3bd..0a7ba48 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -85,6 +85,7 @@
#include "chrome/common/buildflags.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/secure_origin_whitelist.h"
+#include "chrome/common/web_components_prefs.h"
#include "components/autofill/core/common/autofill_prefs.h"
#include "components/browsing_data/core/pref_names.h"
#include "components/certificate_transparency/pref_names.h"
@@ -835,6 +836,7 @@
syncer::SyncPrefs::RegisterProfilePrefs(registry);
syncer::PerUserTopicRegistrationManager::RegisterProfilePrefs(registry);
syncer::InvalidatorRegistrarWithMemory::RegisterProfilePrefs(registry);
+ web_components_prefs::RegisterProfilePrefs(registry);
TemplateURLPrepopulateData::RegisterProfilePrefs(registry);
translate::TranslatePrefs::RegisterProfilePrefs(registry);
ZeroSuggestProvider::RegisterProfilePrefs(registry);