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

Unified Diff: chrome/browser/chromeos/system/statistics_provider.cc

Issue 17010003: Cleanup of system settings constants (ab)use. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
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..365a5a63a65fd278a009fa793a52bc4c7c1b1edd 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 kDevSwitchBootMode[] = "devsw_boot";
+const char kHardwareClass[] = "hardware_class";
+const char kMachineInfoBoard[] =
+ "CHROMEOS_RELEASE_BOARD";
+const char kOffersCouponCodeKey[] = "ubind_attribute";
+const char kOffersGroupCodeKey[] = "gbind_attribute";
+const char kOemCanExitEnterpriseEnrollmentKey[] =
+ "oem_can_exit_enrollment";
+const char kOemDeviceRequisitionKey[] =
+ "oem_device_requisition";
+const char kOemIsEnterpriseManagedKey[] =
+ "oem_enterprise_managed";
+const char kOemKeyboardDrivenOobeKey[] =
+ "oem_keyboard_driven_oobe";
+
// 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;
}
« no previous file with comments | « chrome/browser/chromeos/system/statistics_provider.h ('k') | chrome/browser/extensions/scoped_gaia_auth_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698