| 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/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/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" | |
| 15 #include "base/sequenced_task_runner.h" | 14 #include "base/sequenced_task_runner.h" |
| 16 #include "base/strings/sys_string_conversions.h" | 15 #include "base/strings/sys_string_conversions.h" |
| 17 #include "base/values.h" | 16 #include "base/values.h" |
| 18 #include "components/policy/core/common/external_data_fetcher.h" | 17 #include "components/policy/core/common/external_data_fetcher.h" |
| 19 #include "components/policy/core/common/mac_util.h" | 18 #include "components/policy/core/common/mac_util.h" |
| 20 #include "components/policy/core/common/policy_bundle.h" | 19 #include "components/policy/core/common/policy_bundle.h" |
| 21 #include "components/policy/core/common/policy_load_status.h" | 20 #include "components/policy/core/common/policy_load_status.h" |
| 22 #include "components/policy/core/common/policy_map.h" | 21 #include "components/policy/core/common/policy_map.h" |
| 23 #include "components/policy/core/common/preferences_mac.h" | 22 #include "components/policy/core/common/preferences_mac.h" |
| 24 #include "components/policy/core/common/schema.h" | 23 #include "components/policy/core/common/schema.h" |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 } | 152 } |
| 154 } | 153 } |
| 155 } | 154 } |
| 156 | 155 |
| 157 void PolicyLoaderMac::OnFileUpdated(const base::FilePath& path, bool error) { | 156 void PolicyLoaderMac::OnFileUpdated(const base::FilePath& path, bool error) { |
| 158 if (!error) | 157 if (!error) |
| 159 Reload(false); | 158 Reload(false); |
| 160 } | 159 } |
| 161 | 160 |
| 162 } // namespace policy | 161 } // namespace policy |
| OLD | NEW |