| OLD | NEW |
| 1 // Copyright (c) 2011 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" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 !file_info.is_directory) { | 75 !file_info.is_directory) { |
| 76 last_modification = std::max(last_modification, file_info.last_modified); | 76 last_modification = std::max(last_modification, file_info.last_modified); |
| 77 } | 77 } |
| 78 } | 78 } |
| 79 | 79 |
| 80 return last_modification; | 80 return last_modification; |
| 81 } | 81 } |
| 82 | 82 |
| 83 ConfigDirPolicyProvider::ConfigDirPolicyProvider( | 83 ConfigDirPolicyProvider::ConfigDirPolicyProvider( |
| 84 const PolicyDefinitionList* policy_list, | 84 const PolicyDefinitionList* policy_list, |
| 85 PolicyLevel level, |
| 85 const FilePath& config_dir) | 86 const FilePath& config_dir) |
| 86 : FileBasedPolicyProvider( | 87 : FileBasedPolicyProvider( |
| 87 policy_list, | 88 policy_list, |
| 89 level, |
| 90 POLICY_SCOPE_MACHINE, |
| 88 new ConfigDirPolicyProviderDelegate(config_dir)) { | 91 new ConfigDirPolicyProviderDelegate(config_dir)) { |
| 89 } | 92 } |
| 90 | 93 |
| 91 } // namespace policy | 94 } // namespace policy |
| OLD | NEW |