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

Unified Diff: chrome/browser/chromeos/arc/policy/arc_policy_util.h

Issue 2448013002: Extract utilities for policy check from ArcAuthService. (Closed)
Patch Set: Created 4 years, 2 months 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/arc/policy/arc_policy_util.h
diff --git a/chrome/browser/chromeos/arc/policy/arc_policy_util.h b/chrome/browser/chromeos/arc/policy/arc_policy_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..98f1e287e83105b8a94b56654c5b986f8e2af4c9
--- /dev/null
+++ b/chrome/browser/chromeos/arc/policy/arc_policy_util.h
@@ -0,0 +1,22 @@
+// Copyright 2016 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_ARC_POLICY_ARC_POLICY_UTIL_H_
+#define CHROME_BROWSER_CHROMEOS_ARC_POLICY_ARC_POLICY_UTIL_H_
+
+class Profile;
+
+namespace arc {
+namespace policy_util {
+
+// Returns true if the account is managed. Otherwise false.
+bool IsAccountManaged(Profile* profile);
+
+// Returns true if ARC is disabled by --enterprise-diable-arc flag.
+bool IsArcDisabledForEnterprise();
+
+} // namespace policy_util
+} // namespace arc
+
+#endif // CHROME_BROWSER_CHROMEOS_ARC_POLICY_ARC_POLICY_UTIL_H_
« no previous file with comments | « chrome/browser/chromeos/arc/arc_auth_service.cc ('k') | chrome/browser/chromeos/arc/policy/arc_policy_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698