Chromium Code Reviews| 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
|
| } |