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

Side by Side Diff: chrome/browser/chromeos/arc/policy/arc_policy_util.cc

Issue 2446563002: Refactor ArcAndroidManagementChecker. (Closed)
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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 #include "chrome/browser/chromeos/arc/policy/arc_policy_util.h"
6
7 #include "chrome/browser/policy/profile_policy_connector.h"
8 #include "chrome/browser/policy/profile_policy_connector_factory.h"
9 #include "chrome/browser/profiles/profile.h"
10
11 namespace arc {
12 namespace policy_util {
13
14 bool IsAccountManaged(Profile* profile) {
15 return policy::ProfilePolicyConnectorFactory::GetForBrowserContext(profile)
16 ->IsManaged();
17 }
18
19 } // namespace policy_util
20 } // namespace arc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698