Chromium Code Reviews| 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 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_POLICY_UTIL_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_POLICY_POLICY_UTIL_H_ | |
| 7 | |
| 8 #include "policy/proto/device_management_backend.pb.h" | |
| 9 | |
| 10 namespace policy { | |
| 11 | |
| 12 // If |management_mode| is set in |policy_data|, it simply returns it. For | |
| 13 // legacy policy data which don't have |management_mode|, it checks if | |
| 14 // |request_token| is set and returns a mode for backward-compatiblity. | |
| 15 enterprise_management::PolicyData::ManagementMode | |
| 16 GetManagementMode(const enterprise_management::PolicyData& policy_data); | |
|
Mattias Nissler (ping if slow)
2014/11/27 08:37:31
Two suggestions:
1. I think moving this over to cl
davidyu
2014/11/27 10:04:08
Ok. I added a new enum. I also refactored Enrollme
| |
| 17 | |
| 18 } // namespace policy | |
| 19 | |
| 20 #endif // CHROME_BROWSER_CHROMEOS_POLICY_POLICY_UTIL_H_ | |
| OLD | NEW |