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/user_cloud_policy_manager_chromeos.h" | 5 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.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 "chrome/browser/policy/cloud_policy_refresh_scheduler.h" | 9 #include "chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.h" |
10 #include "chrome/browser/policy/cloud_policy_service.h" | 10 #include "chrome/browser/policy/cloud/cloud_policy_service.h" |
| 11 #include "chrome/browser/policy/cloud/resource_cache.h" |
11 #include "chrome/browser/policy/policy_bundle.h" | 12 #include "chrome/browser/policy/policy_bundle.h" |
12 #include "chrome/browser/policy/resource_cache.h" | |
13 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
14 #include "net/url_request/url_request_context_getter.h" | 14 #include "net/url_request/url_request_context_getter.h" |
15 | 15 |
16 namespace em = enterprise_management; | 16 namespace em = enterprise_management; |
17 | 17 |
18 namespace policy { | 18 namespace policy { |
19 | 19 |
20 UserCloudPolicyManagerChromeOS::UserCloudPolicyManagerChromeOS( | 20 UserCloudPolicyManagerChromeOS::UserCloudPolicyManagerChromeOS( |
21 scoped_ptr<CloudPolicyStore> store, | 21 scoped_ptr<CloudPolicyStore> store, |
22 scoped_ptr<ResourceCache> resource_cache, | 22 scoped_ptr<ResourceCache> resource_cache, |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 // start the scheduler. The |component_policy_service_| will call back into | 187 // start the scheduler. The |component_policy_service_| will call back into |
188 // OnComponentCloudPolicyUpdated() once it's ready. | 188 // OnComponentCloudPolicyUpdated() once it's ready. |
189 return; | 189 return; |
190 } | 190 } |
191 | 191 |
192 core()->StartRefreshScheduler(); | 192 core()->StartRefreshScheduler(); |
193 core()->TrackRefreshDelayPref(local_state_, prefs::kUserPolicyRefreshRate); | 193 core()->TrackRefreshDelayPref(local_state_, prefs::kUserPolicyRefreshRate); |
194 } | 194 } |
195 | 195 |
196 } // namespace policy | 196 } // namespace policy |
OLD | NEW |