Index: chrome/browser/chromeos/policy/policy_util.h |
diff --git a/chrome/browser/chromeos/policy/policy_util.h b/chrome/browser/chromeos/policy/policy_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6cef3b06767161d67a82b2a897324c50b57396de |
--- /dev/null |
+++ b/chrome/browser/chromeos/policy/policy_util.h |
@@ -0,0 +1,20 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_CHROMEOS_POLICY_POLICY_UTIL_H_ |
+#define CHROME_BROWSER_CHROMEOS_POLICY_POLICY_UTIL_H_ |
+ |
+#include "policy/proto/device_management_backend.pb.h" |
+ |
+namespace policy { |
+ |
+// If |management_mode| is set in |policy_data|, it simply returns it. For |
+// legacy policy data which don't have |management_mode|, it checks if |
+// |request_token| is set and returns a mode for backward-compatiblity. |
+enterprise_management::PolicyData::ManagementMode |
+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
|
+ |
+} // namespace policy |
+ |
+#endif // CHROME_BROWSER_CHROMEOS_POLICY_POLICY_UTIL_H_ |