OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/chromeos/policy/policy_util.h" |
| 6 |
| 7 namespace em = enterprise_management; |
| 8 |
| 9 namespace policy { |
| 10 |
| 11 em::PolicyData::ManagementMode GetManagementMode( |
| 12 const em::PolicyData& policy_data) { |
| 13 if (policy_data.has_management_mode()) |
| 14 return policy_data.management_mode(); |
| 15 if (policy_data.has_request_token()) |
| 16 return em::PolicyData::ENTERPRISE_MANAGED; |
| 17 return em::PolicyData::LOCAL_OWNER; |
| 18 } |
| 19 |
| 20 } // namespace policy |
OLD | NEW |