Add the registration mode field to the protobuf.
Make the test dm server send the new register response.
BUG=chromium-os:26248
TEST=none
Review URL: https://chromiumcodereview.appspot.com/9404006
git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@123467 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
diff --git a/device_management_backend.proto b/device_management_backend.proto
index f5da7f7..9db8cc9 100644
--- a/device_management_backend.proto
+++ b/device_management_backend.proto
@@ -56,6 +56,20 @@
// the format of "Machine Model - Machine Id". However, domain
// admin can update it using CPanel, so do NOT treat it as constant.
optional string machine_name = 2;
+
+ // Enum listing the possible modes the device should be locked into when the
+ // registration is finished.
+ enum DeviceMode {
+ // In ENTERPRISE mode the device has no local owner and device settings are
+ // controlled through the cloud policy infrastructure. Auto-enrollment is
+ // supported in that mode.
+ ENTERPRISE = 0;
+ // Devices in KIOSK mode also have no local owner and get their device
+ // settings from the cloud, but additionally this mode enables the demo
+ // account on the device.
+ KIOSK = 1;
+ }
+ optional DeviceMode enrollment_type = 3 [default = ENTERPRISE];
}
// Request from device to server to unregister device.