| OLD | NEW |
| 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/config_dir_policy_provider.h" | 5 #include "chrome/browser/policy/config_dir_policy_provider.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/json/json_value_serializer.h" | 12 #include "base/json/json_file_value_serializer.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/platform_file.h" | 14 #include "base/platform_file.h" |
| 15 #include "chrome/browser/policy/policy_map.h" | 15 #include "chrome/browser/policy/policy_map.h" |
| 16 | 16 |
| 17 namespace policy { | 17 namespace policy { |
| 18 | 18 |
| 19 ConfigDirPolicyProviderDelegate::ConfigDirPolicyProviderDelegate( | 19 ConfigDirPolicyProviderDelegate::ConfigDirPolicyProviderDelegate( |
| 20 const FilePath& config_dir, | 20 const FilePath& config_dir, |
| 21 PolicyLevel level, | 21 PolicyLevel level, |
| 22 PolicyScope scope) | 22 PolicyScope scope) |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 ConfigDirPolicyProvider::ConfigDirPolicyProvider( | 93 ConfigDirPolicyProvider::ConfigDirPolicyProvider( |
| 94 const PolicyDefinitionList* policy_list, | 94 const PolicyDefinitionList* policy_list, |
| 95 PolicyLevel level, | 95 PolicyLevel level, |
| 96 PolicyScope scope, | 96 PolicyScope scope, |
| 97 const FilePath& config_dir) | 97 const FilePath& config_dir) |
| 98 : FileBasedPolicyProvider( | 98 : FileBasedPolicyProvider( |
| 99 policy_list, | 99 policy_list, |
| 100 new ConfigDirPolicyProviderDelegate(config_dir, level, scope)) {} | 100 new ConfigDirPolicyProviderDelegate(config_dir, level, scope)) {} |
| 101 | 101 |
| 102 } // namespace policy | 102 } // namespace policy |
| OLD | NEW |