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

Unified 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, 1 month 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 side-by-side diff with in-line comments
Download patch
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_
« 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