| 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 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 void OnPolicyStored(); | 69 void OnPolicyStored(); |
| 70 | 70 |
| 71 // Re-syncs policy and status from |device_settings_service_|. | 71 // Re-syncs policy and status from |device_settings_service_|. |
| 72 void UpdateFromService(); | 72 void UpdateFromService(); |
| 73 | 73 |
| 74 chromeos::DeviceSettingsService* device_settings_service_; | 74 chromeos::DeviceSettingsService* device_settings_service_; |
| 75 EnterpriseInstallAttributes* install_attributes_; | 75 EnterpriseInstallAttributes* install_attributes_; |
| 76 | 76 |
| 77 scoped_refptr<base::SequencedTaskRunner> background_task_runner_; | 77 scoped_refptr<base::SequencedTaskRunner> background_task_runner_; |
| 78 | 78 |
| 79 // Run enrollment sanity check and UMA stats only upon the first policy | 79 // Whether enterprise enrollment validation has yet been done. |
| 80 // read/update. | 80 bool enrollment_validation_done_; |
| 81 bool first_update_; | |
| 82 | 81 |
| 83 base::WeakPtrFactory<DeviceCloudPolicyStoreChromeOS> weak_factory_; | 82 base::WeakPtrFactory<DeviceCloudPolicyStoreChromeOS> weak_factory_; |
| 84 | 83 |
| 85 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyStoreChromeOS); | 84 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyStoreChromeOS); |
| 86 }; | 85 }; |
| 87 | 86 |
| 88 } // namespace policy | 87 } // namespace policy |
| 89 | 88 |
| 90 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_ | 89 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_STORE_CHROMEOS_H_ |
| OLD | NEW |