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

Unified Diff: chrome/browser/configuration_policy_provider.h

Issue 2858060: Changing policy while Chrome is running should refresh preferences without relaunching (Closed)
Patch Set: changed name of mock Created 10 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/configuration_policy_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/configuration_policy_provider.h
diff --git a/chrome/browser/configuration_policy_provider.h b/chrome/browser/configuration_policy_provider.h
index 7cb60f62dbe976b6c1870a4aaef716a0f41ae35c..ae4ad73b1390ee92476e51eef392b4c97e417cd9 100644
--- a/chrome/browser/configuration_policy_provider.h
+++ b/chrome/browser/configuration_policy_provider.h
@@ -30,6 +30,11 @@ class ConfigurationPolicyProvider {
// Returns true if the policy could be provided, otherwise false.
virtual bool Provide(ConfigurationPolicyStore* store) = 0;
+ // Called by the subclass provider at any time to indicate that the currently
+ // applied policy is not longer current. A policy refresh will be initiated as
+ // soon as possible.
+ virtual void NotifyStoreOfPolicyChange();
+
protected:
// A structure mapping policies to their implementations by providers.
struct PolicyValueMapEntry {
« no previous file with comments | « no previous file | chrome/browser/configuration_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698