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

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

Issue 2218703006: Clean up handling of invalid HWID when running ChromeOS in VMs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
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 #ifndef CHROMEOS_SYSTEM_STATISTICS_PROVIDER_H_ 5 #ifndef CHROMEOS_SYSTEM_STATISTICS_PROVIDER_H_
6 #define CHROMEOS_SYSTEM_STATISTICS_PROVIDER_H_ 6 #define CHROMEOS_SYSTEM_STATISTICS_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 25 matching lines...) Expand all
36 // firmware with MP and developer keys respectively, nonchrome indicates the 36 // firmware with MP and developer keys respectively, nonchrome indicates the
37 // machine doesn't run on Chrome OS firmware. See crossystem source for more 37 // machine doesn't run on Chrome OS firmware. See crossystem source for more
38 // details. 38 // details.
39 CHROMEOS_EXPORT extern const char kFirmwareTypeKey[]; 39 CHROMEOS_EXPORT extern const char kFirmwareTypeKey[];
40 CHROMEOS_EXPORT extern const char kFirmwareTypeValueDeveloper[]; 40 CHROMEOS_EXPORT extern const char kFirmwareTypeValueDeveloper[];
41 CHROMEOS_EXPORT extern const char kFirmwareTypeValueNonchrome[]; 41 CHROMEOS_EXPORT extern const char kFirmwareTypeValueNonchrome[];
42 CHROMEOS_EXPORT extern const char kFirmwareTypeValueNormal[]; 42 CHROMEOS_EXPORT extern const char kFirmwareTypeValueNormal[];
43 43
44 // HWID key. 44 // HWID key.
45 CHROMEOS_EXPORT extern const char kHardwareClassKey[]; 45 CHROMEOS_EXPORT extern const char kHardwareClassKey[];
46 CHROMEOS_EXPORT extern const char kHardwareClassValueVM[];
46 47
47 // System vendor key. 48 // System vendor key.
48 // The value is used to check if Chrome is running on a VM or a real Chrome OS 49 // The value is used to check if Chrome is running on a VM or a real Chrome OS
49 // device. On QEMU VMs this value is QEMU. 50 // device. On QEMU VMs this value is QEMU.
50 CHROMEOS_EXPORT extern const char kSystemVendorKey[]; 51 CHROMEOS_EXPORT extern const char kSystemVendorKey[];
51 52
52 // OEM customization flag that permits exiting enterprise enrollment flow in 53 // OEM customization flag that permits exiting enterprise enrollment flow in
53 // OOBE when 'oem_enterprise_managed' flag is set. 54 // OOBE when 'oem_enterprise_managed' flag is set.
54 CHROMEOS_EXPORT extern const char kOemCanExitEnterpriseEnrollmentKey[]; 55 CHROMEOS_EXPORT extern const char kOemCanExitEnterpriseEnrollmentKey[];
55 56
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 static void SetTestProvider(StatisticsProvider* test_provider); 119 static void SetTestProvider(StatisticsProvider* test_provider);
119 120
120 protected: 121 protected:
121 virtual ~StatisticsProvider() {} 122 virtual ~StatisticsProvider() {}
122 }; 123 };
123 124
124 } // namespace system 125 } // namespace system
125 } // namespace chromeos 126 } // namespace chromeos
126 127
127 #endif // CHROMEOS_SYSTEM_STATISTICS_PROVIDER_H_ 128 #endif // CHROMEOS_SYSTEM_STATISTICS_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698