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

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

Issue 769703003: SetManagementSettings() is moved to OwnerSettingsServiceChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Failing test fixed. 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // An enum that indicates if a device that has a local owner, is enterprise- 134 // An enum that indicates if a device that has a local owner, is enterprise-
135 // managed, or is consumer-managed. This is a copy of ManagementMode in 135 // managed, or is consumer-managed. This is a copy of ManagementMode in
136 // PolicyData. See device_management_backend.proto for the explanation of each 136 // PolicyData. See device_management_backend.proto for the explanation of each
137 // mode. 137 // mode.
138 enum ManagementMode { 138 enum ManagementMode {
139 MANAGEMENT_MODE_LOCAL_OWNER = 0, 139 MANAGEMENT_MODE_LOCAL_OWNER = 0,
140 MANAGEMENT_MODE_ENTERPRISE_MANAGED = 1, 140 MANAGEMENT_MODE_ENTERPRISE_MANAGED = 1,
141 MANAGEMENT_MODE_CONSUMER_MANAGED = 2, 141 MANAGEMENT_MODE_CONSUMER_MANAGED = 2,
142 }; 142 };
143 143
144 // Sets management mode field in the |policy_data|.
145 POLICY_EXPORT void SetManagementMode(
146 enterprise_management::PolicyData& policy_data,
147 ManagementMode mode);
148
144 // Returns the management mode of |policy_data|. You should use this function 149 // Returns the management mode of |policy_data|. You should use this function
145 // instead of using |management_mode| in |policy_data| to handle legacy 150 // instead of using |management_mode| in |policy_data| to handle legacy
146 // |policy_data| that doesn't have |management_mode| set. 151 // |policy_data| that doesn't have |management_mode| set.
147 POLICY_EXPORT ManagementMode GetManagementMode( 152 POLICY_EXPORT ManagementMode GetManagementMode(
148 const enterprise_management::PolicyData& policy_data); 153 const enterprise_management::PolicyData& policy_data);
149 154
150 } // namespace policy 155 } // namespace policy
151 156
152 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ 157 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698