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

Side by Side Diff: components/policy/core/common/cloud/cloud_policy_constants.h

Issue 608283003: Remove retail mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // Service error: The administrator has deprovisioned this client. 102 // Service error: The administrator has deprovisioned this client.
103 DM_STATUS_SERVICE_DEPROVISIONED = 13, 103 DM_STATUS_SERVICE_DEPROVISIONED = 13,
104 // Service error: Device registration for the wrong domain. 104 // Service error: Device registration for the wrong domain.
105 DM_STATUS_SERVICE_DOMAIN_MISMATCH = 14, 105 DM_STATUS_SERVICE_DOMAIN_MISMATCH = 14,
106 // Service error: Policy not found. Error code defined by the DM folks. 106 // Service error: Policy not found. Error code defined by the DM folks.
107 DM_STATUS_SERVICE_POLICY_NOT_FOUND = 902, 107 DM_STATUS_SERVICE_POLICY_NOT_FOUND = 902,
108 }; 108 };
109 109
110 // List of modes that the device can be locked into. 110 // List of modes that the device can be locked into.
111 enum DeviceMode { 111 enum DeviceMode {
112 DEVICE_MODE_PENDING, // The device mode is not yet available. 112 DEVICE_MODE_PENDING, // The device mode is not yet available.
113 DEVICE_MODE_NOT_SET, // The device is not yet enrolled or owned. 113 DEVICE_MODE_NOT_SET, // The device is not yet enrolled or owned.
114 DEVICE_MODE_CONSUMER, // The device is locally owned as consumer 114 DEVICE_MODE_CONSUMER, // The device is locally owned as consumer
115 // device. 115 // device.
116 DEVICE_MODE_ENTERPRISE, // The device is enrolled as an enterprise 116 DEVICE_MODE_ENTERPRISE, // The device is enrolled as an enterprise
117 // device. 117 // device.
118 DEVICE_MODE_RETAIL_KIOSK, // The device is enrolled as retail kiosk device. 118 DEVICE_MODE_LEGACY_RETAIL_MODE, // The device is enrolled as retail kiosk
119 // device. Even though retail mode is
120 // deprecated, we still check for this device
121 // mode so that if a device has still been
bartfab (slow) 2014/11/27 16:25:48 Nit: s/a device has still been left/an existing de
rkc 2014/12/01 19:15:05 Done.
122 // left in retail mode, we take the
123 // appropriate action (currently, launching
124 // offline demo mode).
119 DEVICE_MODE_CONSUMER_KIOSK_AUTOLAUNCH, // The device is locally owned as 125 DEVICE_MODE_CONSUMER_KIOSK_AUTOLAUNCH, // The device is locally owned as
120 // consumer kiosk with ability to auto 126 // consumer kiosk with ability to auto
121 // launch a kiosk webapp. 127 // launch a kiosk webapp.
122 }; 128 };
123 129
124 // A pair that combines a policy fetch type and entity ID. 130 // A pair that combines a policy fetch type and entity ID.
125 typedef std::pair<std::string, std::string> PolicyNamespaceKey; 131 typedef std::pair<std::string, std::string> PolicyNamespaceKey;
126 132
127 // Returns the Chrome user policy type to use. This allows overridding the 133 // Returns the Chrome user policy type to use. This allows overridding the
128 // default user policy type on Android and iOS for testing purposes. 134 // default user policy type on Android and iOS for testing purposes.
129 // TODO(joaodasilva): remove this once the server is ready. 135 // TODO(joaodasilva): remove this once the server is ready.
130 // http://crbug.com/248527 136 // http://crbug.com/248527
131 POLICY_EXPORT const char* GetChromeUserPolicyType(); 137 POLICY_EXPORT const char* GetChromeUserPolicyType();
132 138
133 } // namespace policy 139 } // namespace policy
134 140
135 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ 141 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698