tree: 7db1d29465af95ef8d4c5b6874febae7914bc1c1 [path history] [tgz]
  1. BUILD.gn
  2. early_prefs_constants.h
  3. early_prefs_reader.cc
  4. early_prefs_reader.h
  5. early_prefs_writer.cc
  6. early_prefs_writer.h
  7. OWNERS
  8. README.md
chromeos/ash/components/early_prefs/README.md

“Early prefs” is the mechanism to export some of the Profile preferences in a way that they can be read early in the ChromeOS Login flow, before Profile loading starts.

EarlyPrefsWriter can be used to export policies from the Profile. It works in a write-only mode, replacing previous data, so all relevant values should be re-exported every time.

Version 1 of the schema:

  • schema_version (int)
  • data : dict from pref name to pref value and some metadata
    • managed (bool)
    • recommended (bool), defined only for managed prefs
    • value (base::Value) actual value of the pref