Chromium Code Reviews| Index: chrome/browser/chromeos/system/statistics_provider.cc |
| diff --git a/chrome/browser/chromeos/system/statistics_provider.cc b/chrome/browser/chromeos/system/statistics_provider.cc |
| index 5f82b2abd750167bec1bfce602369be2a0e8504b..fd94d01dd08bda3f6eaabe30928d661b245b970e 100644 |
| --- a/chrome/browser/chromeos/system/statistics_provider.cc |
| +++ b/chrome/browser/chromeos/system/statistics_provider.cc |
| @@ -75,6 +75,22 @@ const CommandLine::CharType kOemManifestFilePath[] = |
| } // namespace |
| +// Key values for GetMachineStatistic()/GetMachineFlag() calls. |
| +const char kMachineInfoBoard[] = |
| + "CHROMEOS_RELEASE_BOARD"; |
| +const char kOffersCouponCodeKey[] = "ubind_attribute"; |
| +const char kOffersGroupCodeKey[] = "gbind_attribute"; |
| +const char kHardwareClass[] = "hardware_class"; |
| +const char kOemDeviceRequisitionKey[] = |
| + "oem_device_requisition"; |
| +const char kOemIsEnterpriseManagedKey[] = |
| + "oem_enterprise_managed"; |
| +const char kOemCanExitEnterpriseEnrollmentKey[] = |
| + "oem_can_exit_enrollment"; |
| +const char kOemKeyboardDrivenOobeKey[] = |
| + "oem_keyboard_driven_oobe"; |
| +const char kDevSwitchBootMode[] = "devsw_boot"; |
|
xiyuan
2013/06/18 04:59:23
nit: alpha-sort the list and follow the same order
zel
2013/06/18 17:56:37
Done.
|
| + |
| // The StatisticsProvider implementation used in production. |
| class StatisticsProviderImpl : public StatisticsProvider { |
| public: |
| @@ -252,13 +268,13 @@ void StatisticsProviderImpl::LoadOemManifestFromFile( |
| if (!KioskOemManifestParser::Load(file, &oem_manifest)) |
| return; |
| - machine_info_[chromeos::kOemDeviceRequisitionKey] = |
| + machine_info_[kOemDeviceRequisitionKey] = |
| oem_manifest.device_requisition; |
| - machine_flags_[chromeos::kOemIsEnterpriseManagedKey] = |
| + machine_flags_[kOemIsEnterpriseManagedKey] = |
| oem_manifest.enterprise_managed; |
| - machine_flags_[chromeos::kOemCanExitEnterpriseEnrollmentKey] = |
| + machine_flags_[kOemCanExitEnterpriseEnrollmentKey] = |
| oem_manifest.can_exit_enrollment; |
| - machine_flags_[chromeos::kOemKeyboardDrivenOobeKey] = |
| + machine_flags_[kOemKeyboardDrivenOobeKey] = |
| oem_manifest.keyboard_driven_oobe; |
| } |