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

Side by Side Diff: chrome/browser/chromeos/policy/policy_util.h

Issue 742513006: Add ManagementMode enum and GetManagementMode(). (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
(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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/policy/device_local_account_policy_service.cc ('k') | chrome/browser/chromeos/policy/policy_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698