| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // Most of this code is copied from: | 5 // Most of this code is copied from: |
| 6 // src/chrome/browser/policy/asynchronous_policy_loader.{h,cc} | 6 // src/chrome/browser/policy/asynchronous_policy_loader.{h,cc} |
| 7 | 7 |
| 8 #include "remoting/host/policy_watcher.h" | 8 #include "remoting/host/policy_watcher.h" |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "build/build_config.h" |
| 16 #include "components/policy/core/common/async_policy_loader.h" | 17 #include "components/policy/core/common/async_policy_loader.h" |
| 17 #include "components/policy/core/common/async_policy_provider.h" | 18 #include "components/policy/core/common/async_policy_provider.h" |
| 18 #include "components/policy/core/common/policy_namespace.h" | 19 #include "components/policy/core/common/policy_namespace.h" |
| 19 #include "components/policy/core/common/policy_service_impl.h" | 20 #include "components/policy/core/common/policy_service_impl.h" |
| 20 #include "components/policy/core/common/schema.h" | 21 #include "components/policy/core/common/schema.h" |
| 21 #include "components/policy/core/common/schema_registry.h" | 22 #include "components/policy/core/common/schema_registry.h" |
| 22 #include "policy/policy_constants.h" | 23 #include "policy/policy_constants.h" |
| 23 #include "remoting/host/dns_blackhole_checker.h" | 24 #include "remoting/host/dns_blackhole_checker.h" |
| 24 #include "remoting/host/third_party_auth_config.h" | 25 #include "remoting/host/third_party_auth_config.h" |
| 25 #include "remoting/protocol/port_range.h" | 26 #include "remoting/protocol/port_range.h" |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 policy::POLICY_SCOPE_MACHINE)); | 368 policy::POLICY_SCOPE_MACHINE)); |
| 368 #else | 369 #else |
| 369 #error OS that is not yet supported by PolicyWatcher code. | 370 #error OS that is not yet supported by PolicyWatcher code. |
| 370 #endif | 371 #endif |
| 371 | 372 |
| 372 return PolicyWatcher::CreateFromPolicyLoader(policy_loader.Pass()); | 373 return PolicyWatcher::CreateFromPolicyLoader(policy_loader.Pass()); |
| 373 #endif // !(OS_CHROMEOS) | 374 #endif // !(OS_CHROMEOS) |
| 374 } | 375 } |
| 375 | 376 |
| 376 } // namespace remoting | 377 } // namespace remoting |
| OLD | NEW |