onc_pref_names.cc 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright 2016 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. #include "components/onc/onc_pref_names.h"
  5. #include "components/pref_registry/pref_registry_syncable.h"
  6. #include "components/prefs/pref_registry_simple.h"
  7. namespace onc {
  8. namespace prefs {
  9. // A pref to configure networks device-wide. Its value must be a list of
  10. // NetworkConfigurations according to the OpenNetworkConfiguration
  11. // specification.
  12. // Currently, this pref is only used to store the policy. The user's
  13. // configuration is still stored in Shill.
  14. const char kDeviceOpenNetworkConfiguration[] = "device_onc";
  15. // A pref to configure networks. Its value must be a list of
  16. // NetworkConfigurations according to the OpenNetworkConfiguration
  17. // specification.
  18. // Currently, this pref is only used to store the policy. The user's
  19. // configuration is still stored in Shill.
  20. const char kOpenNetworkConfiguration[] = "onc";
  21. } // namespace prefs
  22. void RegisterPrefs(PrefRegistrySimple* registry) {
  23. registry->RegisterListPref(prefs::kDeviceOpenNetworkConfiguration);
  24. }
  25. void RegisterProfilePrefs(PrefRegistrySimple* registry) {
  26. registry->RegisterListPref(prefs::kOpenNetworkConfiguration);
  27. }
  28. } // namespace onc