Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: chrome/browser/configuration_policy_pref_store.cc

Issue 2809058: Add application locale policy. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: " Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/language_switch_menu.cc ('k') | chrome/browser/configuration_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698