Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1993)

Unified Diff: chrome/browser/policy/cloud_policy_subsystem.cc

Issue 6979011: Move user cloud policy to BrowserProcess. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments by mnissler. Added unittest. Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/cloud_policy_subsystem.cc
diff --git a/chrome/browser/policy/cloud_policy_subsystem.cc b/chrome/browser/policy/cloud_policy_subsystem.cc
index d084b80ed94d8ae13d89f165482e1818915c07a6..8fa3484843e2ae2cb65031bd93ef3f07a53c7d89 100644
--- a/chrome/browser/policy/cloud_policy_subsystem.cc
+++ b/chrome/browser/policy/cloud_policy_subsystem.cc
@@ -71,7 +71,6 @@ CloudPolicySubsystem::CloudPolicySubsystem(
}
CloudPolicySubsystem::~CloudPolicySubsystem() {
- DCHECK(!prefs_);
Joao da Silva 2011/05/31 14:50:23 Why has this been removed? This is set to NULL on
sfeuz 2011/06/03 08:30:35 |prefs_| is only still here because of the refresh
cloud_policy_controller_.reset();
device_token_fetcher_.reset();
cloud_policy_cache_.reset();
@@ -130,21 +129,6 @@ void CloudPolicySubsystem::StopAutoRetry() {
device_token_fetcher_->StopAutoRetry();
}
-ConfigurationPolicyProvider* CloudPolicySubsystem::GetManagedPolicyProvider() {
- if (cloud_policy_cache_.get())
- return cloud_policy_cache_->GetManagedPolicyProvider();
-
- return NULL;
-}
-
-ConfigurationPolicyProvider*
- CloudPolicySubsystem::GetRecommendedPolicyProvider() {
- if (cloud_policy_cache_.get())
- return cloud_policy_cache_->GetRecommendedPolicyProvider();
-
- return NULL;
-}
-
// static
void CloudPolicySubsystem::RegisterPrefs(PrefService* pref_service) {
pref_service->RegisterIntegerPref(prefs::kPolicyRefreshRate,

Powered by Google App Engine
This is Rietveld 408576698