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

Unified Diff: chrome/browser/policy/device_policy_cache.h

Issue 7298012: Consolidate data storage and notifications in the cloud policy subsystem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments + tweaks Created 9 years, 5 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/device_policy_cache.h
diff --git a/chrome/browser/policy/device_policy_cache.h b/chrome/browser/policy/device_policy_cache.h
index 7e1082db32830e851487d5b7200069852829b631..a09c45b5fc82f7148c6faaac3fd8500aa4ede9a3 100644
--- a/chrome/browser/policy/device_policy_cache.h
+++ b/chrome/browser/policy/device_policy_cache.h
@@ -6,8 +6,6 @@
#define CHROME_BROWSER_POLICY_DEVICE_POLICY_CACHE_H_
#pragma once
-#include <string>
-
#include "base/memory/scoped_callback_factory.h"
#include "chrome/browser/chromeos/login/signed_settings.h"
#include "chrome/browser/chromeos/login/signed_settings_helper.h"
@@ -16,7 +14,6 @@
namespace policy {
-class DevicePolicyIdentityStrategy;
class EnterpriseInstallAttributes;
class PolicyMap;
@@ -27,7 +24,7 @@ namespace em = enterprise_management;
class DevicePolicyCache : public CloudPolicyCacheBase,
public chromeos::SignedSettingsHelper::Callback {
public:
- explicit DevicePolicyCache(DevicePolicyIdentityStrategy* identity_strategy,
+ explicit DevicePolicyCache(CloudPolicyData* data,
EnterpriseInstallAttributes* install_attributes);
virtual ~DevicePolicyCache();
@@ -48,7 +45,7 @@ class DevicePolicyCache : public CloudPolicyCacheBase,
// Alternate c'tor allowing tests to mock out the SignedSettingsHelper
// singleton.
DevicePolicyCache(
- DevicePolicyIdentityStrategy* identity_strategy,
+ CloudPolicyData* data,
EnterpriseInstallAttributes* install_attributes,
chromeos::SignedSettingsHelper* signed_settings_helper);
@@ -67,7 +64,7 @@ class DevicePolicyCache : public CloudPolicyCacheBase,
PolicyMap* mandatory,
PolicyMap* recommended);
- DevicePolicyIdentityStrategy* identity_strategy_;
+ CloudPolicyData* data_;
EnterpriseInstallAttributes* install_attributes_;
chromeos::SignedSettingsHelper* signed_settings_helper_;

Powered by Google App Engine
This is Rietveld 408576698