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

Side by Side Diff: chrome/browser/policy/configuration_policy_handler_list.cc

Issue 12189011: Split up chrome/browser/policy subdirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, add chrome/browser/chromeos/policy/OWNERS Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/policy/configuration_policy_handler_list.h" 5 #include "chrome/browser/policy/configuration_policy_handler_list.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/prefs/pref_value_map.h" 9 #include "base/prefs/pref_value_map.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/policy/configuration_policy_handler.h" 12 #include "chrome/browser/policy/configuration_policy_handler.h"
13 #include "chrome/browser/policy/policy_error_map.h" 13 #include "chrome/browser/policy/policy_error_map.h"
14 #include "chrome/browser/policy/policy_map.h" 14 #include "chrome/browser/policy/policy_map.h"
15 #include "chrome/common/extensions/manifest.h" 15 #include "chrome/common/extensions/manifest.h"
16 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
17 #include "chromeos/network/onc/onc_constants.h" 17 #include "chromeos/network/onc/onc_constants.h"
18 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
19 #include "policy/policy_constants.h" 19 #include "policy/policy_constants.h"
20 20
21 #if defined(OS_CHROMEOS) 21 #if defined(OS_CHROMEOS)
22 #include "chrome/browser/policy/configuration_policy_handler_chromeos.h" 22 #include "chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h "
23 #endif // defined(OS_CHROMEOS) 23 #endif // defined(OS_CHROMEOS)
24 24
25 namespace policy { 25 namespace policy {
26 26
27 namespace { 27 namespace {
28 28
29 // Maps a policy type to a preference path, and to the expected value type. 29 // Maps a policy type to a preference path, and to the expected value type.
30 // This is the entry type of |kSimplePolicyMap| below. 30 // This is the entry type of |kSimplePolicyMap| below.
31 struct PolicyToPreferenceMapEntry { 31 struct PolicyToPreferenceMapEntry {
32 const char* policy_name; 32 const char* policy_name;
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 } 528 }
529 529
530 void ConfigurationPolicyHandlerList::PrepareForDisplaying( 530 void ConfigurationPolicyHandlerList::PrepareForDisplaying(
531 PolicyMap* policies) const { 531 PolicyMap* policies) const {
532 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; 532 std::vector<ConfigurationPolicyHandler*>::const_iterator handler;
533 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) 533 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler)
534 (*handler)->PrepareForDisplaying(policies); 534 (*handler)->PrepareForDisplaying(policies);
535 } 535 }
536 536
537 } // namespace policy 537 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698