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

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

Issue 60823003: Introduced a ForwardingPolicyProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed ios Created 7 years, 1 month 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/mock_configuration_policy_provider.h
diff --git a/chrome/browser/policy/mock_configuration_policy_provider.h b/chrome/browser/policy/mock_configuration_policy_provider.h
index eb7fd53f7694a852ddfb3f3efc32445adc9264cb..46523f775027ed2d826cd15e902d735bf98e73bb 100644
--- a/chrome/browser/policy/mock_configuration_policy_provider.h
+++ b/chrome/browser/policy/mock_configuration_policy_provider.h
@@ -40,7 +40,13 @@ class MockConfigurationPolicyProvider : public ConfigurationPolicyProvider {
ConfigurationPolicyProvider::Init(&registry_);
}
+ // Convenience method that installs an expectation on RefreshPolicies that
+ // just notifies the observers and serves the same policies.
+ void SetAutoRefresh();
+
private:
+ void RefreshWithSamePolicies();
+
SchemaRegistry registry_;
DISALLOW_COPY_AND_ASSIGN(MockConfigurationPolicyProvider);

Powered by Google App Engine
This is Rietveld 408576698