Chromium Code Reviews| Index: chrome/browser/policy/configuration_policy_reader.h |
| diff --git a/chrome/browser/policy/configuration_policy_reader.h b/chrome/browser/policy/configuration_policy_reader.h |
| index da11fa88536cfea39625e96486914954861b0846..526be4bbc223e2b4b645bf198eae85d5b9bf29b1 100644 |
| --- a/chrome/browser/policy/configuration_policy_reader.h |
| +++ b/chrome/browser/policy/configuration_policy_reader.h |
| @@ -1,4 +1,4 @@ |
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Copyright (c) 2012 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. |
| @@ -11,7 +11,6 @@ |
| #include "base/values.h" |
| #include "chrome/browser/policy/configuration_policy_provider.h" |
| #include "chrome/browser/policy/policy_status_info.h" |
| -#include "policy/configuration_policy_type.h" |
| namespace policy { |
| @@ -35,8 +34,7 @@ class ConfigurationPolicyReader : public ConfigurationPolicyProvider::Observer { |
| virtual ~Observer() {} |
| }; |
| - ConfigurationPolicyReader(ConfigurationPolicyProvider* provider, |
| - PolicyStatusInfo::PolicyLevel policy_level); |
| + explicit ConfigurationPolicyReader(ConfigurationPolicyProvider* provider); |
| virtual ~ConfigurationPolicyReader(); |
| // ConfigurationPolicyProvider::Observer methods: |
| @@ -64,7 +62,7 @@ class ConfigurationPolicyReader : public ConfigurationPolicyProvider::Observer { |
| // information for the UI. Ownership of the return value is acquired by the |
| // caller. Returns NULL if the reader is not aware of the given policy. |
| virtual DictionaryValue* |
| - GetPolicyStatus(ConfigurationPolicyType policy) const; |
| + GetPolicyStatus(const char* policy) const; |
|
Mattias Nissler (ping if slow)
2012/01/17 09:52:45
fits the previous line?
Joao da Silva
2012/01/17 13:09:29
Done.
|
| private: |
| friend class MockConfigurationPolicyReader; |
| @@ -79,9 +77,6 @@ class ConfigurationPolicyReader : public ConfigurationPolicyProvider::Observer { |
| // The policy provider from which policy settings are read. |
| ConfigurationPolicyProvider* provider_; |
| - // Whether this ConfigurationPolicyReader contains managed policies. |
| - PolicyStatusInfo::PolicyLevel policy_level_; |
| - |
| // Current policy status. |
| scoped_ptr<ConfigurationPolicyStatusKeeper> policy_keeper_; |
| @@ -121,7 +116,7 @@ class PolicyStatus { |
| // Add the policy information for |policy| to the ListValue pointed to be |
| // |list| as it is returned by the different ConfigurationPolicyReader |
| // objects. Returns true if a policy was added and false otherwise. |
| - bool AddPolicyFromReaders(ConfigurationPolicyType policy, |
| + bool AddPolicyFromReaders(const char* policy, |
| ListValue* list) const; |
|
Mattias Nissler (ping if slow)
2012/01/17 09:52:45
fits the previous line?
Joao da Silva
2012/01/17 13:09:29
Done.
|
| scoped_ptr<ConfigurationPolicyReader> managed_platform_; |