From b6e695a9c6fa185592c01bd16fcbd7b95296e571 Mon Sep 17 00:00:00 2001 From: "joaodasilva@chromium.org" Date: Thu, 29 Sep 2011 15:08:33 +0000 Subject: Move observers to ConfigurationPolicyProvider. Share more code for ConfigurationPolicyProviders at the base class. Removed the DummyConfigurationPolicyProvider. Removed the DummyCloudPolicyProvider. Moved ApplyPolicyValueTree to PolicyMap. BUG=chromium-os:17309 TEST=Everything works as before Review URL: http://codereview.chromium.org/8059029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103274 0039d316-1c4b-4281-b951-d872f2087c98 --- .../policy/dummy_configuration_policy_provider.h | 34 ---------------------- 1 file changed, 34 deletions(-) delete mode 100644 chrome/browser/policy/dummy_configuration_policy_provider.h (limited to 'chrome/browser/policy/dummy_configuration_policy_provider.h') diff --git a/chrome/browser/policy/dummy_configuration_policy_provider.h b/chrome/browser/policy/dummy_configuration_policy_provider.h deleted file mode 100644 index 77ee8d0..0000000 --- a/chrome/browser/policy/dummy_configuration_policy_provider.h +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2011 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. - -#ifndef CHROME_BROWSER_POLICY_DUMMY_CONFIGURATION_POLICY_PROVIDER_H_ -#define CHROME_BROWSER_POLICY_DUMMY_CONFIGURATION_POLICY_PROVIDER_H_ -#pragma once - -#include "base/observer_list.h" -#include "chrome/browser/policy/configuration_policy_provider.h" - -namespace policy { - -class DummyConfigurationPolicyProvider : public ConfigurationPolicyProvider { - public: - explicit DummyConfigurationPolicyProvider( - const PolicyDefinitionList* policy_list); - virtual ~DummyConfigurationPolicyProvider(); - - virtual bool Provide(PolicyMap* map) OVERRIDE; - - private: - // ConfigurationPolicyProvider overrides: - virtual void AddObserver(ConfigurationPolicyProvider::Observer* observer); - virtual void RemoveObserver(ConfigurationPolicyProvider::Observer* observer); - - ObserverList observer_list_; - - DISALLOW_COPY_AND_ASSIGN(DummyConfigurationPolicyProvider); -}; - -} // namespace policy - -#endif // CHROME_BROWSER_POLICY_DUMMY_CONFIGURATION_POLICY_PROVIDER_H_ -- cgit v1.1