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

Unified Diff: components/policy/core/common/cloud/cloud_policy_client.cc

Issue 608283003: Remove retail mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: components/policy/core/common/cloud/cloud_policy_client.cc
diff --git a/components/policy/core/common/cloud/cloud_policy_client.cc b/components/policy/core/common/cloud/cloud_policy_client.cc
index 3014fd7f1585755d8825c7c6ad01341d57aec0e5..6776c9998c90c8caed9aa8b847839223d22d380c 100644
--- a/components/policy/core/common/cloud/cloud_policy_client.cc
+++ b/components/policy/core/common/cloud/cloud_policy_client.cc
@@ -23,12 +23,8 @@ namespace {
// internally to represent different device modes.
DeviceMode TranslateProtobufDeviceMode(
em::DeviceRegisterResponse::DeviceMode mode) {
- switch (mode) {
- case em::DeviceRegisterResponse::ENTERPRISE:
- return DEVICE_MODE_ENTERPRISE;
- case em::DeviceRegisterResponse::RETAIL:
- return DEVICE_MODE_RETAIL_KIOSK;
- }
+ if (mode == em::DeviceRegisterResponse::ENTERPRISE)
+ return DEVICE_MODE_ENTERPRISE;
LOG(ERROR) << "Unknown enrollment mode in registration response: " << mode;
return DEVICE_MODE_NOT_SET;
bartfab (slow) 2014/10/15 09:52:21 We will now reach this line on retail mode devices
rkc 2014/11/20 21:06:34 Leaving this code as is. We aren't removing the de
}

Powered by Google App Engine
This is Rietveld 408576698