OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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/policy_loader_mac.h" | 5 #include "components/policy/core/common/policy_loader_mac.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
12 #include "base/mac/foundation_util.h" | 12 #include "base/mac/foundation_util.h" |
13 #include "base/mac/scoped_cftyperef.h" | 13 #include "base/mac/scoped_cftyperef.h" |
14 #include "base/sequenced_task_runner.h" | 14 #include "base/sequenced_task_runner.h" |
15 #include "base/strings/sys_string_conversions.h" | 15 #include "base/strings/sys_string_conversions.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
| 17 #include "build/build_config.h" |
17 #include "components/policy/core/common/external_data_fetcher.h" | 18 #include "components/policy/core/common/external_data_fetcher.h" |
18 #include "components/policy/core/common/mac_util.h" | 19 #include "components/policy/core/common/mac_util.h" |
19 #include "components/policy/core/common/policy_bundle.h" | 20 #include "components/policy/core/common/policy_bundle.h" |
20 #include "components/policy/core/common/policy_load_status.h" | 21 #include "components/policy/core/common/policy_load_status.h" |
21 #include "components/policy/core/common/policy_map.h" | 22 #include "components/policy/core/common/policy_map.h" |
22 #include "components/policy/core/common/preferences_mac.h" | 23 #include "components/policy/core/common/preferences_mac.h" |
23 #include "components/policy/core/common/schema.h" | 24 #include "components/policy/core/common/schema.h" |
24 #include "components/policy/core/common/schema_map.h" | 25 #include "components/policy/core/common/schema_map.h" |
25 | 26 |
26 using base::ScopedCFTypeRef; | 27 using base::ScopedCFTypeRef; |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 } | 186 } |
186 } | 187 } |
187 } | 188 } |
188 | 189 |
189 void PolicyLoaderMac::OnFileUpdated(const base::FilePath& path, bool error) { | 190 void PolicyLoaderMac::OnFileUpdated(const base::FilePath& path, bool error) { |
190 if (!error) | 191 if (!error) |
191 Reload(false); | 192 Reload(false); |
192 } | 193 } |
193 | 194 |
194 } // namespace policy | 195 } // namespace policy |
OLD | NEW |