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

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

Issue 9911029: Refactored the CloudPolicyProvider so that it becomes initialized once and stays initialized. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Updated expectations in failing browser_tests Created 8 years, 9 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 3bf53483c9dbc94ea92278a5515983d1437fab34..09c2c7d9f73e38d428f87c7e7910e6f098a0b4ec 100644
--- a/chrome/browser/policy/device_policy_cache.h
+++ b/chrome/browser/policy/device_policy_cache.h
@@ -26,7 +26,8 @@ class PolicyMap;
class DevicePolicyCache : public CloudPolicyCacheBase {
public:
DevicePolicyCache(CloudPolicyDataStore* data_store,
- EnterpriseInstallAttributes* install_attributes);
+ EnterpriseInstallAttributes* install_attributes,
+ chromeos::SignedSettingsHelper* signed_settings_helper);
virtual ~DevicePolicyCache();
// CloudPolicyCacheBase implementation:
@@ -40,16 +41,6 @@ class DevicePolicyCache : public CloudPolicyCacheBase {
const enterprise_management::PolicyFetchResponse& policy);
private:
- friend class DevicePolicyCacheTest;
- friend class DevicePolicyCacheTestHelper;
-
- // Alternate c'tor allowing tests to mock out the SignedSettingsHelper
- // singleton.
- DevicePolicyCache(
- CloudPolicyDataStore* data_store,
- EnterpriseInstallAttributes* install_attributes,
- chromeos::SignedSettingsHelper* signed_settings_helper);
-
// CloudPolicyCacheBase implementation:
virtual bool DecodePolicyData(
const enterprise_management::PolicyData& policy_data,

Powered by Google App Engine
This is Rietveld 408576698