Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Side by Side Diff: chromeos/system/statistics_provider.cc

Issue 212653004: Update server-backed state key generation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix re-enrollment test. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chromeos/system/statistics_provider.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chromeos/system/statistics_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698