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