borealis: Begin implementing Features and Prefs
This CL refactors IsAllowed for borealis into the standard GuestOs
approach (i.e. having a pref-keyed singleton). This necessitates minor
refactorings of the installer and its tests.
Relatedly, this calls for the creation of Borealis prefs, which were
also added in the same fashion as the other GuestOs implementations.
Bug: b/168763038, b/162562622
Change-Id: Ie153c2a860a174feaa3156801a8415ca99eefcad
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2415755
Reviewed-by: Nancy Wang <[email protected]>
Reviewed-by: Dominic Battré <[email protected]>
Reviewed-by: Daniel Ng <[email protected]>
Commit-Queue: Nic Hollingum <[email protected]>
Cr-Commit-Position: refs/heads/master@{#813976}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 2c28af6c..d73e13cc 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -273,6 +273,7 @@
#if defined(USE_CUPS)
#include "chrome/browser/chromeos/extensions/printing/printing_api_handler.h"
#endif
+#include "chrome/browser/chromeos/borealis/borealis_prefs.h"
#include "chrome/browser/chromeos/child_accounts/secondary_account_consent_logger.h"
#include "chrome/browser/chromeos/file_system_provider/registry.h"
#include "chrome/browser/chromeos/first_run/first_run.h"
@@ -963,6 +964,7 @@
RegisterChromeLauncherUserPrefs(registry);
::onc::RegisterProfilePrefs(registry);
chromeos::cert_provisioning::RegisterProfilePrefs(registry);
+ borealis::prefs::RegisterProfilePrefs(registry);
#endif // defined(OS_CHROMEOS)
#if defined(OS_WIN)