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

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 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 9
10 #include "components/policy/policy_export.h" 10 #include "components/policy/policy_export.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // Service error: The administrator has deprovisioned this client. 106 // Service error: The administrator has deprovisioned this client.
107 DM_STATUS_SERVICE_DEPROVISIONED = 13, 107 DM_STATUS_SERVICE_DEPROVISIONED = 13,
108 // Service error: Device registration for the wrong domain. 108 // Service error: Device registration for the wrong domain.
109 DM_STATUS_SERVICE_DOMAIN_MISMATCH = 14, 109 DM_STATUS_SERVICE_DOMAIN_MISMATCH = 14,
110 // Service error: Policy not found. Error code defined by the DM folks. 110 // Service error: Policy not found. Error code defined by the DM folks.
111 DM_STATUS_SERVICE_POLICY_NOT_FOUND = 902, 111 DM_STATUS_SERVICE_POLICY_NOT_FOUND = 902,
112 }; 112 };
113 113
114 // List of modes that the device can be locked into. 114 // List of modes that the device can be locked into.
115 enum DeviceMode { 115 enum DeviceMode {
116 DEVICE_MODE_PENDING, // The device mode is not yet available. 116 DEVICE_MODE_PENDING, // The device mode is not yet available.
117 DEVICE_MODE_NOT_SET, // The device is not yet enrolled or owned. 117 DEVICE_MODE_NOT_SET, // The device is not yet enrolled or owned.
118 DEVICE_MODE_CONSUMER, // The device is locally owned as consumer 118 DEVICE_MODE_CONSUMER, // The device is locally owned as consumer
119 // device. 119 // device.
120 DEVICE_MODE_ENTERPRISE, // The device is enrolled as an enterprise 120 DEVICE_MODE_ENTERPRISE, // The device is enrolled as an enterprise
121 // device. 121 // device.
122 DEVICE_MODE_RETAIL_KIOSK, // The device is enrolled as retail kiosk device. 122 DEVICE_MODE_LEGACY_RETAIL_MODE, // The device is enrolled as a retail kiosk
123 // device. Even though retail mode is
124 // deprecated, we still check for this device
125 // mode so that if an existing device is
126 // still enrolled in retail mode, we take the
127 // appropriate action (currently, launching
128 // offline demo mode).
123 DEVICE_MODE_CONSUMER_KIOSK_AUTOLAUNCH, // The device is locally owned as 129 DEVICE_MODE_CONSUMER_KIOSK_AUTOLAUNCH, // The device is locally owned as
124 // consumer kiosk with ability to auto 130 // consumer kiosk with ability to auto
125 // launch a kiosk webapp. 131 // launch a kiosk webapp.
126 }; 132 };
127 133
128 // Returns the Chrome user policy type to use. This allows overridding the 134 // Returns the Chrome user policy type to use. This allows overridding the
129 // default user policy type on Android and iOS for testing purposes. 135 // default user policy type on Android and iOS for testing purposes.
130 // TODO(joaodasilva): remove this once the server is ready. 136 // TODO(joaodasilva): remove this once the server is ready.
131 // http://crbug.com/248527 137 // http://crbug.com/248527
132 POLICY_EXPORT const char* GetChromeUserPolicyType(); 138 POLICY_EXPORT const char* GetChromeUserPolicyType();
(...skipping 15 matching lines...) Expand all
148 154
149 // Returns the management mode of |policy_data|. You should use this function 155 // Returns the management mode of |policy_data|. You should use this function
150 // instead of using |management_mode| in |policy_data| to handle legacy 156 // instead of using |management_mode| in |policy_data| to handle legacy
151 // |policy_data| that doesn't have |management_mode| set. 157 // |policy_data| that doesn't have |management_mode| set.
152 POLICY_EXPORT ManagementMode GetManagementMode( 158 POLICY_EXPORT ManagementMode GetManagementMode(
153 const enterprise_management::PolicyData& policy_data); 159 const enterprise_management::PolicyData& policy_data);
154 160
155 } // namespace policy 161 } // namespace policy
156 162
157 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ 163 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_
OLDNEW
« no previous file with comments | « components/policy/core/common/cloud/cloud_policy_client.cc ('k') | components/user_manager/user.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698