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 "base/macros.h" | |
9 | |
10 namespace enterprise_management { | |
11 class PolicyData; | |
12 } | |
13 | |
14 namespace policy { | |
15 | |
16 class PolicyUtil { | |
Mattias Nissler (ping if slow)
2014/11/26 13:52:42
We should just make helper function outside a clas
davidyu
2014/11/27 04:00:35
Done.
| |
17 public: | |
18 // Returns true if the device is consumer-managed, enterprise-managed, or | |
19 // local owned, respectively. Only one, and exactly one of these will return | |
20 // true. | |
21 static bool IsConsumerManaged( | |
Mattias Nissler (ping if slow)
2014/11/26 13:52:42
Can we make an enum and have a single GetManagemen
davidyu
2014/11/27 04:00:34
Done.
| |
22 const enterprise_management::PolicyData& policy_data); | |
23 static bool IsEnterpriseManaged( | |
24 const enterprise_management::PolicyData& policy_data); | |
25 static bool IsLocalOwned( | |
26 const enterprise_management::PolicyData& policy_data); | |
27 | |
28 private: | |
29 DISALLOW_IMPLICIT_CONSTRUCTORS(PolicyUtil); | |
30 }; | |
31 | |
32 } // namespace policy | |
33 | |
34 #endif // CHROME_BROWSER_CHROMEOS_POLICY_POLICY_UTIL_H_ | |
OLD | NEW |