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/chromeos/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 "base/logging.h" | 9 #include "base/logging.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 return; // Not connected. | 252 return; // Not connected. |
253 | 253 |
254 if (component_policy_service_ && | 254 if (component_policy_service_ && |
255 !component_policy_service_->is_initialized()) { | 255 !component_policy_service_->is_initialized()) { |
256 // If the client doesn't have the list of components to fetch yet then don't | 256 // If the client doesn't have the list of components to fetch yet then don't |
257 // start the scheduler. The |component_policy_service_| will call back into | 257 // start the scheduler. The |component_policy_service_| will call back into |
258 // OnComponentCloudPolicyUpdated() once it's ready. | 258 // OnComponentCloudPolicyUpdated() once it's ready. |
259 return; | 259 return; |
260 } | 260 } |
261 | 261 |
262 StartRefreshScheduler(); | 262 core()->StartRefreshScheduler(); |
263 core()->TrackRefreshDelayPref(local_state_, prefs::kUserPolicyRefreshRate); | 263 core()->TrackRefreshDelayPref(local_state_, prefs::kUserPolicyRefreshRate); |
264 } | 264 } |
265 | 265 |
266 } // namespace policy | 266 } // namespace policy |
OLD | NEW |