summaryrefslogtreecommitdiffstats
path: root/chrome/browser/policy/device_management_policy_provider.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/policy/device_management_policy_provider.cc')
-rw-r--r--chrome/browser/policy/device_management_policy_provider.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/chrome/browser/policy/device_management_policy_provider.cc b/chrome/browser/policy/device_management_policy_provider.cc
index 1a1f0c2..8b9d9b4 100644
--- a/chrome/browser/policy/device_management_policy_provider.cc
+++ b/chrome/browser/policy/device_management_policy_provider.cc
@@ -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.
@@ -108,7 +108,11 @@ DeviceManagementPolicyProvider::DeviceManagementPolicyProvider(
unmanaged_device_refresh_rate_ms);
}
-DeviceManagementPolicyProvider::~DeviceManagementPolicyProvider() {}
+DeviceManagementPolicyProvider::~DeviceManagementPolicyProvider() {
+ FOR_EACH_OBSERVER(ConfigurationPolicyProvider::Observer,
+ observer_list_,
+ OnProviderGoingAway());
+}
bool DeviceManagementPolicyProvider::Provide(
ConfigurationPolicyStoreInterface* policy_store) {
@@ -183,12 +187,6 @@ void DeviceManagementPolicyProvider::OnNotManaged() {
StopWaitingForInitialPolicies();
}
-void DeviceManagementPolicyProvider::Shutdown() {
- profile_ = NULL;
- if (token_fetcher_)
- token_fetcher_->Shutdown();
-}
-
void DeviceManagementPolicyProvider::AddObserver(
ConfigurationPolicyProvider::Observer* observer) {
observer_list_.AddObserver(observer);