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

Unified Diff: chromeos/system/statistics_provider.cc

Issue 871013004: Don't do auto-enrollment if the write protect switch is off. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gperftools_prof_timer
Patch Set: Fix mistake in test adjustment. Created 5 years, 11 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: chromeos/system/statistics_provider.cc
diff --git a/chromeos/system/statistics_provider.cc b/chromeos/system/statistics_provider.cc
index 7ac8863a4b2208e2b949709c7aba243feb841f03..e1555d756d2bf1dc0b7512b2fd9fb6166fcd403e 100644
--- a/chromeos/system/statistics_provider.cc
+++ b/chromeos/system/statistics_provider.cc
@@ -70,7 +70,9 @@ const base::CommandLine::CharType kOemManifestFilePath[] =
// Key values for GetMachineStatistic()/GetMachineFlag() calls.
const char kActivateDateKey[] = "ActivateDate";
const char kCustomizationIdKey[] = "customization_id";
-const char kDevSwitchBootMode[] = "devsw_boot";
+const char kDevSwitchBootKey[] = "devsw_boot";
+const char kDevSwitchBootValueDev[] = "1";
+const char kDevSwitchBootValueVerified[] = "0";
const char kFirmwareTypeKey[] = "mainfw_type";
const char kFirmwareTypeValueDeveloper[] = "developer";
const char kFirmwareTypeValueNonchrome[] = "nonchrome";
@@ -79,6 +81,9 @@ const char kHardwareClassKey[] = "hardware_class";
const char kOffersCouponCodeKey[] = "ubind_attribute";
const char kOffersGroupCodeKey[] = "gbind_attribute";
const char kRlzBrandCodeKey[] = "rlz_brand_code";
+const char kWriteProtectSwitchBootKey[] = "wpsw_boot";
+const char kWriteProtectSwitchBootValueOff[] = "0";
+const char kWriteProtectSwitchBootValueOn[] = "1";
// OEM specific statistics. Must be prefixed with "oem_".
const char kOemCanExitEnterpriseEnrollmentKey[] = "oem_can_exit_enrollment";

Powered by Google App Engine
This is Rietveld 408576698