| Index: chrome/browser/chromeos/arc/policy/arc_policy_util.cc
|
| diff --git a/chrome/browser/chromeos/arc/policy/arc_policy_util.cc b/chrome/browser/chromeos/arc/policy/arc_policy_util.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9846ded8dae5a091fa7ee0feb9b43a1f0b1c33f5
|
| --- /dev/null
|
| +++ b/chrome/browser/chromeos/arc/policy/arc_policy_util.cc
|
| @@ -0,0 +1,20 @@
|
| +// 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.
|
| +
|
| +#include "chrome/browser/chromeos/arc/policy/arc_policy_util.h"
|
| +
|
| +#include "chrome/browser/policy/profile_policy_connector.h"
|
| +#include "chrome/browser/policy/profile_policy_connector_factory.h"
|
| +#include "chrome/browser/profiles/profile.h"
|
| +
|
| +namespace arc {
|
| +namespace policy_util {
|
| +
|
| +bool IsAccountManaged(Profile* profile) {
|
| + return policy::ProfilePolicyConnectorFactory::GetForBrowserContext(profile)
|
| + ->IsManaged();
|
| +}
|
| +
|
| +} // namespace policy_util
|
| +} // namespace arc
|
|
|