Chromium Code Reviews| Index: chrome/browser/policy/configuration_policy_pref_store.h |
| diff --git a/chrome/browser/policy/configuration_policy_pref_store.h b/chrome/browser/policy/configuration_policy_pref_store.h |
| index 820306aa74fdf0c4374d4e420639faf85557be28..76654d44a8c9b7e11a9660f77098b4d4aa3967e1 100644 |
| --- a/chrome/browser/policy/configuration_policy_pref_store.h |
| +++ b/chrome/browser/policy/configuration_policy_pref_store.h |
| @@ -40,6 +40,7 @@ class ConfigurationPolicyPrefStore : public PrefStore, |
| // ConfigurationPolicyStore methods: |
| virtual void Apply(ConfigurationPolicyType setting, Value* value); |
| + virtual void Completed(); |
|
danno
2010/12/21 16:16:38
Where are the tests to make sure that completed ac
battre (please use the other)
2010/12/21 20:14:09
I have deleted this.
|
| // Creates a ConfigurationPolicyPrefStore that reads managed platform policy. |
| static ConfigurationPolicyPrefStore* CreateManagedPlatformPolicyPrefStore(); |
| @@ -56,10 +57,6 @@ class ConfigurationPolicyPrefStore : public PrefStore, |
| static const ConfigurationPolicyProvider::PolicyDefinitionList* |
| GetChromePolicyDefinitionList(); |
| - // Returns the set of preference paths that can be affected by a proxy |
| - // policy. |
| - static void GetProxyPreferenceSet(ProxyPreferenceSet* proxy_pref_set); |
| - |
| private: |
| // Policies that map to a single preference are handled |
| // by an automated converter. Each one of these policies |
| @@ -79,23 +76,13 @@ class ConfigurationPolicyPrefStore : public PrefStore, |
| ConfigurationPolicyProvider* provider_; |
| scoped_ptr<DictionaryValue> prefs_; |
| - // Set to false until the first proxy-relevant policy is applied. At that |
| - // time, default values are provided for all proxy-relevant prefs |
| - // to override any values set from stores with a lower priority. |
| - bool lower_priority_proxy_settings_overridden_; |
| - |
| - // The following are used to track what proxy-relevant policy has been applied |
| - // accross calls to Apply to provide a warning if a policy specifies a |
| - // contradictory proxy configuration. |proxy_disabled_| is set to true if and |
| - // only if the kPolicyNoProxyServer has been applied, |
| - // |proxy_configuration_specified_| is set to true if and only if any other |
| - // proxy policy other than kPolicyNoProxyServer has been applied. |
| - bool proxy_disabled_; |
| - bool proxy_configuration_specified_; |
| + // Temporary containers that store values until Completed() is called. |
| + scoped_ptr<Value> proxy_mode_container_; |
| + scoped_ptr<Value> proxy_server_container_; |
| + scoped_ptr<Value> proxy_pac_url_container_; |
| + scoped_ptr<Value> proxy_bypass_list_container_; |
| - // Set to true if a the proxy mode policy has been set to force Chrome |
| - // to use the system proxy. |
| - bool use_system_proxy_; |
| + bool error_in_proxy_settings_; |
| // Returns the map entry that corresponds to |policy| in the map. |
| const PolicyToPreferenceMapEntry* FindPolicyInMap( |
| @@ -136,6 +123,14 @@ class ConfigurationPolicyPrefStore : public PrefStore, |
| // map entries from |prefs_|. |
| void FinalizeDefaultSearchPolicySettings(); |
| + // Returns true if the policy values stored in proxy_* represent a valid |
| + // proxy configuration. |
| + bool CheckProxySettings(); |
| + |
| + // Assumes CheckProxySettings returns true and applies the values stored |
| + // in proxy_*. |
| + void ApplyProxySettings(); |
| + |
| DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStore); |
| }; |