ash_prefs.h 1.1 KB

1234567891011121314151617181920212223242526272829
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef ASH_PUBLIC_CPP_ASH_PREFS_H_
  5. #define ASH_PUBLIC_CPP_ASH_PREFS_H_
  6. #include "ash/ash_export.h"
  7. class PrefRegistrySimple;
  8. namespace ash {
  9. // Registers all ash related local state prefs to the given |registry|.
  10. ASH_EXPORT void RegisterLocalStatePrefs(PrefRegistrySimple* registry,
  11. bool for_test = false);
  12. // Register ash related sign-in/user profile prefs to |registry|. When
  13. // |for_test| is true this registers foreign user profile prefs (e.g. chrome
  14. // prefs) as if they are owned by ash. This allows test code to read the pref
  15. // values.
  16. ASH_EXPORT void RegisterSigninProfilePrefs(PrefRegistrySimple* registry,
  17. bool for_test = false);
  18. ASH_EXPORT void RegisterUserProfilePrefs(PrefRegistrySimple* registry,
  19. bool for_test = false);
  20. } // namespace ash
  21. #endif // ASH_PUBLIC_CPP_ASH_PREFS_H_