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 // Ensure that UMA stats are only reported once per browser start. |
| 80 bool uma_done_; |
| 81 |
79 base::WeakPtrFactory<DeviceCloudPolicyStoreChromeOS> weak_factory_; | 82 base::WeakPtrFactory<DeviceCloudPolicyStoreChromeOS> weak_factory_; |
80 | 83 |
81 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyStoreChromeOS); | 84 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyStoreChromeOS); |
82 }; | 85 }; |
83 | 86 |
84 } // namespace policy | 87 } // namespace policy |
85 | 88 |
86 #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 |