| 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/device_cloud_policy_manager_chromeos.h" | 5 #include "chrome/browser/chromeos/policy/device_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/chromeos/attestation/attestation_policy_observer.h" | 9 #include "chrome/browser/chromeos/attestation/attestation_policy_observer.h" |
| 10 #include "chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.h" | 10 #include "chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.h" |
| 11 #include "chrome/browser/chromeos/policy/enrollment_handler_chromeos.h" | 11 #include "chrome/browser/chromeos/policy/enrollment_handler_chromeos.h" |
| 12 #include "chrome/browser/chromeos/policy/enterprise_install_attributes.h" | 12 #include "chrome/browser/chromeos/policy/enterprise_install_attributes.h" |
| 13 #include "chrome/browser/chromeos/system/statistics_provider.h" | 13 #include "chrome/browser/chromeos/system/statistics_provider.h" |
| 14 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" | 14 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" |
| 15 #include "chrome/browser/policy/cloud/cloud_policy_store.h" | 15 #include "chrome/browser/policy/cloud/cloud_policy_store.h" |
| 16 #include "chrome/browser/policy/cloud/device_management_service.h" | 16 #include "chrome/browser/policy/cloud/device_management_service.h" |
| 17 #include "chrome/browser/policy/cloud/proto/device_management_backend.pb.h" | 17 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" |
| 18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
| 19 | 19 |
| 20 namespace em = enterprise_management; | 20 namespace em = enterprise_management; |
| 21 | 21 |
| 22 namespace policy { | 22 namespace policy { |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 // MachineInfo key names. | 26 // MachineInfo key names. |
| 27 const char kMachineInfoSystemHwqual[] = "hardware_class"; | 27 const char kMachineInfoSystemHwqual[] = "hardware_class"; |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 core()->Connect(CreateClient()); | 183 core()->Connect(CreateClient()); |
| 184 core()->StartRefreshScheduler(); | 184 core()->StartRefreshScheduler(); |
| 185 core()->TrackRefreshDelayPref(local_state_, | 185 core()->TrackRefreshDelayPref(local_state_, |
| 186 prefs::kDevicePolicyRefreshRate); | 186 prefs::kDevicePolicyRefreshRate); |
| 187 attestation_policy_observer_.reset( | 187 attestation_policy_observer_.reset( |
| 188 new chromeos::attestation::AttestationPolicyObserver(client())); | 188 new chromeos::attestation::AttestationPolicyObserver(client())); |
| 189 } | 189 } |
| 190 } | 190 } |
| 191 | 191 |
| 192 } // namespace policy | 192 } // namespace policy |
| OLD | NEW |