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/policy_loader_mac.h" | 5 #include "chrome/browser/policy/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/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/mac/foundation_util.h" | 11 #include "base/mac/foundation_util.h" |
12 #include "base/mac/scoped_cftyperef.h" | 12 #include "base/mac/scoped_cftyperef.h" |
13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
14 #include "base/platform_file.h" | 14 #include "base/platform_file.h" |
15 #include "base/sequenced_task_runner.h" | 15 #include "base/sequenced_task_runner.h" |
16 #include "base/strings/sys_string_conversions.h" | 16 #include "base/strings/sys_string_conversions.h" |
17 #include "base/values.h" | 17 #include "base/values.h" |
18 #include "chrome/browser/policy/external_data_fetcher.h" | 18 #include "chrome/browser/policy/external_data_fetcher.h" |
19 #include "chrome/browser/policy/policy_bundle.h" | 19 #include "chrome/browser/policy/policy_bundle.h" |
20 #include "chrome/browser/policy/policy_domain_descriptor.h" | 20 #include "chrome/browser/policy/policy_domain_descriptor.h" |
21 #include "chrome/browser/policy/policy_load_status.h" | 21 #include "chrome/browser/policy/policy_load_status.h" |
22 #include "chrome/browser/policy/policy_map.h" | 22 #include "chrome/browser/policy/policy_map.h" |
23 #include "chrome/browser/policy/preferences_mac.h" | 23 #include "chrome/browser/policy/preferences_mac.h" |
24 #include "chrome/common/policy/policy_schema.h" | 24 #include "components/policy/core/common/policy_schema.h" |
25 #include "policy/policy_constants.h" | 25 #include "policy/policy_constants.h" |
26 | 26 |
27 using base::mac::CFCast; | 27 using base::mac::CFCast; |
28 using base::ScopedCFTypeRef; | 28 using base::ScopedCFTypeRef; |
29 | 29 |
30 namespace policy { | 30 namespace policy { |
31 | 31 |
32 namespace { | 32 namespace { |
33 | 33 |
34 // Callback function for CFDictionaryApplyFunction. |key| and |value| are an | 34 // Callback function for CFDictionaryApplyFunction. |key| and |value| are an |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 policy_value.release(), NULL); | 247 policy_value.release(), NULL); |
248 } | 248 } |
249 } | 249 } |
250 | 250 |
251 void PolicyLoaderMac::OnFileUpdated(const base::FilePath& path, bool error) { | 251 void PolicyLoaderMac::OnFileUpdated(const base::FilePath& path, bool error) { |
252 if (!error) | 252 if (!error) |
253 Reload(false); | 253 Reload(false); |
254 } | 254 } |
255 | 255 |
256 } // namespace policy | 256 } // namespace policy |
OLD | NEW |