Lifecycle management for PolicyProviders
The ConfigurationPolicyProviderKeeper (and therefore the individual ConfigurationPolicyProviders) is now a member variable of the BrowserProcess instead of a singleton. This fixes memory leaks at the cost of slightly more complicated shutdown (the PolicyProviders must die while the file thread is still alive, but the preference system observing the providers for policy changes lives longer than that).
BUG=66054, 66102
TEST=existing unit tests; valgrind
Review URL: http://codereview.chromium.org/5962016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70496 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/chrome_browser.gypi b/chrome/chrome_browser.gypi
index 906d16ab..a6e1646 100644
--- a/chrome/chrome_browser.gypi
+++ b/chrome/chrome_browser.gypi
@@ -1,4 +1,4 @@
-# Copyright (c) 2010 The Chromium Authors. All rights reserved.
+# 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.
@@ -1982,11 +1982,11 @@
'browser/policy/configuration_policy_pref_store.cc',
'browser/policy/configuration_policy_pref_store.h',
'browser/policy/configuration_policy_provider.cc',
- 'browser/policy/configuration_policy_provider.cc',
- 'browser/policy/configuration_policy_provider.h',
'browser/policy/configuration_policy_provider.h',
'browser/policy/configuration_policy_provider_delegate_win.cc',
'browser/policy/configuration_policy_provider_delegate_win.h',
+ 'browser/policy/configuration_policy_provider_keeper.cc',
+ 'browser/policy/configuration_policy_provider_keeper.h',
'browser/policy/configuration_policy_provider_mac.cc',
'browser/policy/configuration_policy_provider_mac.h',
'browser/policy/configuration_policy_provider_win.cc',