| 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 "components/policy/core/common/config_dir_policy_loader.h" | 5 #include "components/policy/core/common/config_dir_policy_loader.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <algorithm> | 9 #include <algorithm> |
| 8 #include <set> | 10 #include <set> |
| 9 #include <string> | 11 #include <string> |
| 10 | 12 |
| 11 #include "base/bind.h" | 13 #include "base/bind.h" |
| 12 #include "base/bind_helpers.h" | 14 #include "base/bind_helpers.h" |
| 13 #include "base/files/file_enumerator.h" | 15 #include "base/files/file_enumerator.h" |
| 14 #include "base/files/file_util.h" | 16 #include "base/files/file_util.h" |
| 15 #include "base/json/json_file_value_serializer.h" | 17 #include "base/json/json_file_value_serializer.h" |
| 16 #include "base/json/json_reader.h" | 18 #include "base/json/json_reader.h" |
| 17 #include "base/logging.h" | 19 #include "base/logging.h" |
| 20 #include "base/macros.h" |
| 18 #include "base/stl_util.h" | 21 #include "base/stl_util.h" |
| 19 #include "components/policy/core/common/policy_bundle.h" | 22 #include "components/policy/core/common/policy_bundle.h" |
| 20 #include "components/policy/core/common/policy_load_status.h" | 23 #include "components/policy/core/common/policy_load_status.h" |
| 21 #include "components/policy/core/common/policy_types.h" | 24 #include "components/policy/core/common/policy_types.h" |
| 22 | 25 |
| 23 namespace policy { | 26 namespace policy { |
| 24 | 27 |
| 25 namespace { | 28 namespace { |
| 26 | 29 |
| 27 // Subdirectories that contain the mandatory and recommended policies. | 30 // Subdirectories that contain the mandatory and recommended policies. |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 } | 227 } |
| 225 } | 228 } |
| 226 | 229 |
| 227 void ConfigDirPolicyLoader::OnFileUpdated(const base::FilePath& path, | 230 void ConfigDirPolicyLoader::OnFileUpdated(const base::FilePath& path, |
| 228 bool error) { | 231 bool error) { |
| 229 if (!error) | 232 if (!error) |
| 230 Reload(false); | 233 Reload(false); |
| 231 } | 234 } |
| 232 | 235 |
| 233 } // namespace policy | 236 } // namespace policy |
| OLD | NEW |