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 "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "base/metrics/sparse_histogram.h" | 11 #include "base/metrics/sparse_histogram.h" |
12 #include "base/sequenced_task_runner.h" | 12 #include "base/sequenced_task_runner.h" |
13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.h" | 14 #include "chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.h" |
15 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom
eos.h" | 15 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom
eos.h" |
16 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 16 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
17 #include "chrome/browser/policy/cloud/cloud_external_data_manager.h" | 17 #include "components/policy/core/common/cloud/cloud_external_data_manager.h" |
18 #include "chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.h" | 18 #include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h" |
19 #include "chrome/browser/policy/cloud/device_management_service.h" | 19 #include "components/policy/core/common/cloud/device_management_service.h" |
20 #include "chrome/browser/policy/cloud/system_policy_request_context.h" | 20 #include "components/policy/core/common/cloud/system_policy_request_context.h" |
21 #include "components/policy/core/common/policy_pref_names.h" | 21 #include "components/policy/core/common/policy_pref_names.h" |
22 #include "content/public/common/content_client.h" | 22 #include "content/public/common/content_client.h" |
23 #include "net/url_request/url_request_context_getter.h" | 23 #include "net/url_request/url_request_context_getter.h" |
24 #include "url/gurl.h" | 24 #include "url/gurl.h" |
25 | 25 |
26 namespace em = enterprise_management; | 26 namespace em = enterprise_management; |
27 | 27 |
28 namespace policy { | 28 namespace policy { |
29 | 29 |
30 namespace { | 30 namespace { |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 // OnComponentCloudPolicyUpdated() once it's ready. | 331 // OnComponentCloudPolicyUpdated() once it's ready. |
332 return; | 332 return; |
333 } | 333 } |
334 | 334 |
335 core()->StartRefreshScheduler(); | 335 core()->StartRefreshScheduler(); |
336 core()->TrackRefreshDelayPref(local_state_, | 336 core()->TrackRefreshDelayPref(local_state_, |
337 policy_prefs::kUserPolicyRefreshRate); | 337 policy_prefs::kUserPolicyRefreshRate); |
338 } | 338 } |
339 | 339 |
340 } // namespace policy | 340 } // namespace policy |
OLD | NEW |