Commit c82a88d4 authored by bauerb@chromium.org's avatar bauerb@chromium.org

Add a method to PolicyProviderAndroid to return the Chrome policy schema.

BUG=370467

Review URL: https://codereview.chromium.org/329143003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276625 0039d316-1c4b-4281-b951-d872f2087c98
parent 0c92ddd4
......@@ -19,6 +19,11 @@ PolicyProviderAndroid::PolicyProviderAndroid()
PolicyProviderAndroid::~PolicyProviderAndroid() {}
const Schema* PolicyProviderAndroid::GetChromeSchema() const {
PolicyNamespace ns(POLICY_DOMAIN_CHROME, std::string());
return schema_map()->GetSchema(ns);
}
// static
void PolicyProviderAndroid::SetShouldWaitForPolicy(
bool should_wait_for_policy) {
......
......@@ -12,6 +12,7 @@
namespace policy {
class PolicyProviderAndroidDelegate;
class Schema;
// Provider for policies set by the Android platform.
class POLICY_EXPORT PolicyProviderAndroid : public ConfigurationPolicyProvider {
......@@ -25,6 +26,9 @@ class POLICY_EXPORT PolicyProviderAndroid : public ConfigurationPolicyProvider {
// been called at least once, otherwise it will return true immediately.
static void SetShouldWaitForPolicy(bool should_wait_for_policy);
// Returns the schema for Chrome policies.
const Schema* GetChromeSchema() const;
void SetDelegate(PolicyProviderAndroidDelegate* delegate);
void SetPolicies(scoped_ptr<PolicyBundle> policy);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment