src/chrome/browser/policy/cloud/cloud_policy_client.cc
// Translates the DeviceRegisterResponse::DeviceMode |mode| to the enum used
// internally to represent different device modes.
Translates the DeviceRegisterResponse::DeviceMode |mode| to the enum used
internally to represent different device modes.
Translates the DeviceRegisterResponse :: DeviceMode |mode| to the enum used 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_KIOSK;
  }
  LOG(ERROR) << "Unknown enrollment mode in registration response: " << mode;
  return DEVICE_MODE_NOT_SET;
}
DeviceMode TranslateProtobufDeviceMode ( em :: DeviceRegisterResponse :: DeviceMode mode ) { switch ( mode ) { case em :: DeviceRegisterResponse :: ENTERPRISE : return DEVICE_MODE_ENTERPRISE ; case em :: DeviceRegisterResponse :: RETAIL : return DEVICE_MODE_KIOSK ; } LOG ( ERROR ) << " " << mode ; return DEVICE_MODE_NOT_SET ; }
Translates the DeviceRegisterResponse::DeviceMode |mode| to the enum used
internally to represent different device modes.
Translates the DeviceRegisterResponse :: DeviceMode |mode| to the enum used internally to represent different device modes .