OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/configuration_policy_pref_store.h" | 5 #include "chrome/browser/configuration_policy_pref_store.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 { Value::TYPE_BOOLEAN, kPolicySearchSuggestEnabled, | 23 { Value::TYPE_BOOLEAN, kPolicySearchSuggestEnabled, |
24 prefs::kSearchSuggestEnabled }, | 24 prefs::kSearchSuggestEnabled }, |
25 { Value::TYPE_BOOLEAN, kPolicyDnsPrefetchingEnabled, | 25 { Value::TYPE_BOOLEAN, kPolicyDnsPrefetchingEnabled, |
26 prefs::kDnsPrefetchingEnabled }, | 26 prefs::kDnsPrefetchingEnabled }, |
27 { Value::TYPE_BOOLEAN, kPolicySafeBrowsingEnabled, | 27 { Value::TYPE_BOOLEAN, kPolicySafeBrowsingEnabled, |
28 prefs::kSafeBrowsingEnabled }, | 28 prefs::kSafeBrowsingEnabled }, |
29 { Value::TYPE_BOOLEAN, kPolicyPasswordManagerEnabled, | 29 { Value::TYPE_BOOLEAN, kPolicyPasswordManagerEnabled, |
30 prefs::kPasswordManagerEnabled }, | 30 prefs::kPasswordManagerEnabled }, |
31 { Value::TYPE_BOOLEAN, kPolicyMetricsReportingEnabled, | 31 { Value::TYPE_BOOLEAN, kPolicyMetricsReportingEnabled, |
32 prefs::kMetricsReportingEnabled }, | 32 prefs::kMetricsReportingEnabled }, |
| 33 { Value::TYPE_STRING, kPolicyApplicationLocale, |
| 34 prefs::kApplicationLocale}, |
33 }; | 35 }; |
34 | 36 |
35 const ConfigurationPolicyPrefStore::PolicyToPreferenceMapEntry | 37 const ConfigurationPolicyPrefStore::PolicyToPreferenceMapEntry |
36 ConfigurationPolicyPrefStore::proxy_policy_map_[] = { | 38 ConfigurationPolicyPrefStore::proxy_policy_map_[] = { |
37 { Value::TYPE_STRING, kPolicyProxyServer, prefs::kProxyServer }, | 39 { Value::TYPE_STRING, kPolicyProxyServer, prefs::kProxyServer }, |
38 { Value::TYPE_STRING, kPolicyProxyPacUrl, prefs::kProxyPacUrl }, | 40 { Value::TYPE_STRING, kPolicyProxyPacUrl, prefs::kProxyPacUrl }, |
39 { Value::TYPE_STRING, kPolicyProxyBypassList, prefs::kProxyBypassList } | 41 { Value::TYPE_STRING, kPolicyProxyBypassList, prefs::kProxyBypassList } |
40 }; | 42 }; |
41 | 43 |
42 ConfigurationPolicyPrefStore::ConfigurationPolicyPrefStore( | 44 ConfigurationPolicyPrefStore::ConfigurationPolicyPrefStore( |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 return; | 303 return; |
302 | 304 |
303 if (ApplyPolicyFromMap(policy, value, simple_policy_map_, | 305 if (ApplyPolicyFromMap(policy, value, simple_policy_map_, |
304 arraysize(simple_policy_map_))) | 306 arraysize(simple_policy_map_))) |
305 return; | 307 return; |
306 | 308 |
307 // Other policy implementations go here. | 309 // Other policy implementations go here. |
308 NOTIMPLEMENTED(); | 310 NOTIMPLEMENTED(); |
309 delete value; | 311 delete value; |
310 } | 312 } |
OLD | NEW |