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/cloud/cloud_policy_core.h" | 5 #include "components/policy/core/common/cloud/cloud_policy_core.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/prefs/pref_service.h" | |
13 #include "components/policy/core/common/cloud/cloud_policy_client.h" | 12 #include "components/policy/core/common/cloud/cloud_policy_client.h" |
14 #include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h" | 13 #include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h" |
15 #include "components/policy/core/common/cloud/cloud_policy_service.h" | 14 #include "components/policy/core/common/cloud/cloud_policy_service.h" |
16 #include "components/policy/core/common/cloud/cloud_policy_store.h" | 15 #include "components/policy/core/common/cloud/cloud_policy_store.h" |
17 #include "components/policy/core/common/remote_commands/remote_commands_factory.
h" | 16 #include "components/policy/core/common/remote_commands/remote_commands_factory.
h" |
18 #include "components/policy/core/common/remote_commands/remote_commands_service.
h" | 17 #include "components/policy/core/common/remote_commands/remote_commands_service.
h" |
| 18 #include "components/prefs/pref_service.h" |
19 | 19 |
20 namespace policy { | 20 namespace policy { |
21 | 21 |
22 CloudPolicyCore::Observer::~Observer() {} | 22 CloudPolicyCore::Observer::~Observer() {} |
23 | 23 |
24 void CloudPolicyCore::Observer::OnRemoteCommandsServiceStarted( | 24 void CloudPolicyCore::Observer::OnRemoteCommandsServiceStarted( |
25 CloudPolicyCore* core) { | 25 CloudPolicyCore* core) { |
26 } | 26 } |
27 | 27 |
28 CloudPolicyCore::CloudPolicyCore( | 28 CloudPolicyCore::CloudPolicyCore( |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 void CloudPolicyCore::RemoveObserver(CloudPolicyCore::Observer* observer) { | 102 void CloudPolicyCore::RemoveObserver(CloudPolicyCore::Observer* observer) { |
103 observers_.RemoveObserver(observer); | 103 observers_.RemoveObserver(observer); |
104 } | 104 } |
105 | 105 |
106 void CloudPolicyCore::UpdateRefreshDelayFromPref() { | 106 void CloudPolicyCore::UpdateRefreshDelayFromPref() { |
107 if (refresh_scheduler_ && refresh_delay_) | 107 if (refresh_scheduler_ && refresh_delay_) |
108 refresh_scheduler_->SetRefreshDelay(refresh_delay_->GetValue()); | 108 refresh_scheduler_->SetRefreshDelay(refresh_delay_->GetValue()); |
109 } | 109 } |
110 | 110 |
111 } // namespace policy | 111 } // namespace policy |
OLD | NEW |