| 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/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 "chrome/browser/policy/external_data_fetcher.h" | 17 #include "chrome/browser/policy/external_data_fetcher.h" |
| 18 #include "chrome/browser/policy/policy_bundle.h" | 18 #include "chrome/browser/policy/policy_bundle.h" |
| 19 #include "chrome/browser/policy/policy_domain_descriptor.h" | 19 #include "chrome/browser/policy/policy_domain_descriptor.h" |
| 20 #include "chrome/browser/policy/policy_load_status.h" | 20 #include "chrome/browser/policy/policy_load_status.h" |
| 21 #include "chrome/browser/policy/policy_map.h" | 21 #include "chrome/browser/policy/policy_map.h" |
| 22 #include "chrome/browser/policy/preferences_mac.h" | 22 #include "chrome/browser/policy/preferences_mac.h" |
| 23 #include "chrome/common/chrome_paths.h" | 23 #include "chrome/common/chrome_paths.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 base::FilePath GetManagedPolicyPath() { | 34 base::FilePath GetManagedPolicyPath() { |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 policy_value.release(), NULL); | 264 policy_value.release(), NULL); |
| 265 } | 265 } |
| 266 } | 266 } |
| 267 | 267 |
| 268 void PolicyLoaderMac::OnFileUpdated(const base::FilePath& path, bool error) { | 268 void PolicyLoaderMac::OnFileUpdated(const base::FilePath& path, bool error) { |
| 269 if (!error) | 269 if (!error) |
| 270 Reload(false); | 270 Reload(false); |
| 271 } | 271 } |
| 272 | 272 |
| 273 } // namespace policy | 273 } // namespace policy |
| OLD | NEW |