OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chromeos/system/statistics_provider.h" | 5 #include "chromeos/system/statistics_provider.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 } // namespace | 66 } // namespace |
67 | 67 |
68 // Key values for GetMachineStatistic()/GetMachineFlag() calls. | 68 // Key values for GetMachineStatistic()/GetMachineFlag() calls. |
69 const char kDevSwitchBootMode[] = "devsw_boot"; | 69 const char kDevSwitchBootMode[] = "devsw_boot"; |
70 const char kCustomizationIdKey[] = "customization_id"; | 70 const char kCustomizationIdKey[] = "customization_id"; |
71 const char kHardwareClassKey[] = "hardware_class"; | 71 const char kHardwareClassKey[] = "hardware_class"; |
72 const char kOffersCouponCodeKey[] = "ubind_attribute"; | 72 const char kOffersCouponCodeKey[] = "ubind_attribute"; |
73 const char kOffersGroupCodeKey[] = "gbind_attribute"; | 73 const char kOffersGroupCodeKey[] = "gbind_attribute"; |
74 const char kRlzBrandCodeKey[] = "rlz_brand_code"; | 74 const char kRlzBrandCodeKey[] = "rlz_brand_code"; |
| 75 const char kDiskSerialNumber[] = "root_disk_serial_number"; |
75 | 76 |
76 // OEM specific statistics. Must be prefixed with "oem_". | 77 // OEM specific statistics. Must be prefixed with "oem_". |
77 const char kOemCanExitEnterpriseEnrollmentKey[] = "oem_can_exit_enrollment"; | 78 const char kOemCanExitEnterpriseEnrollmentKey[] = "oem_can_exit_enrollment"; |
78 const char kOemDeviceRequisitionKey[] = "oem_device_requisition"; | 79 const char kOemDeviceRequisitionKey[] = "oem_device_requisition"; |
79 const char kOemIsEnterpriseManagedKey[] = "oem_enterprise_managed"; | 80 const char kOemIsEnterpriseManagedKey[] = "oem_enterprise_managed"; |
80 const char kOemKeyboardDrivenOobeKey[] = "oem_keyboard_driven_oobe"; | 81 const char kOemKeyboardDrivenOobeKey[] = "oem_keyboard_driven_oobe"; |
81 | 82 |
82 bool HasOemPrefix(const std::string& name) { | 83 bool HasOemPrefix(const std::string& name) { |
83 return name.substr(0, 4) == "oem_"; | 84 return name.substr(0, 4) == "oem_"; |
84 } | 85 } |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 return StatisticsProviderImpl::GetInstance(); | 311 return StatisticsProviderImpl::GetInstance(); |
311 } | 312 } |
312 | 313 |
313 // static | 314 // static |
314 void StatisticsProvider::SetTestProvider(StatisticsProvider* test_provider) { | 315 void StatisticsProvider::SetTestProvider(StatisticsProvider* test_provider) { |
315 g_test_statistics_provider = test_provider; | 316 g_test_statistics_provider = test_provider; |
316 } | 317 } |
317 | 318 |
318 } // namespace system | 319 } // namespace system |
319 } // namespace chromeos | 320 } // namespace chromeos |
OLD | NEW |