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_store_chromeos.h" | 5 #include "chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "chrome/browser/chromeos/policy/device_policy_decoder_chromeos.h" | 8 #include "chrome/browser/chromeos/policy/device_policy_decoder_chromeos.h" |
9 #include "chrome/browser/chromeos/policy/enterprise_install_attributes.h" | 9 #include "chrome/browser/chromeos/policy/enterprise_install_attributes.h" |
10 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" | 10 #include "chrome/browser/policy/proto/chromeos/chrome_device_policy.pb.h" |
11 #include "chrome/browser/policy/cloud/proto/device_management_backend.pb.h" | 11 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" |
12 | 12 |
13 namespace em = enterprise_management; | 13 namespace em = enterprise_management; |
14 | 14 |
15 namespace policy { | 15 namespace policy { |
16 | 16 |
17 DeviceCloudPolicyStoreChromeOS::DeviceCloudPolicyStoreChromeOS( | 17 DeviceCloudPolicyStoreChromeOS::DeviceCloudPolicyStoreChromeOS( |
18 chromeos::DeviceSettingsService* device_settings_service, | 18 chromeos::DeviceSettingsService* device_settings_service, |
19 EnterpriseInstallAttributes* install_attributes) | 19 EnterpriseInstallAttributes* install_attributes) |
20 : device_settings_service_(device_settings_service), | 20 : device_settings_service_(device_settings_service), |
21 install_attributes_(install_attributes), | 21 install_attributes_(install_attributes), |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 case chromeos::DeviceSettingsService::STORE_VALIDATION_ERROR: | 154 case chromeos::DeviceSettingsService::STORE_VALIDATION_ERROR: |
155 case chromeos::DeviceSettingsService::STORE_TEMP_VALIDATION_ERROR: | 155 case chromeos::DeviceSettingsService::STORE_TEMP_VALIDATION_ERROR: |
156 status_ = STATUS_LOAD_ERROR; | 156 status_ = STATUS_LOAD_ERROR; |
157 break; | 157 break; |
158 } | 158 } |
159 | 159 |
160 NotifyStoreError(); | 160 NotifyStoreError(); |
161 } | 161 } |
162 | 162 |
163 } // namespace policy | 163 } // namespace policy |
OLD | NEW |