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

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

Issue 10236003: Added RefreshPolicies to PolicyService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 8 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/policy_service.h
diff --git a/chrome/browser/policy/policy_service.h b/chrome/browser/policy/policy_service.h
index f284dfd9875acd83ba3497daf73d9b61ddd35aea..2341de8b397c455f8a64c649e265f656d2a8f02d 100644
--- a/chrome/browser/policy/policy_service.h
+++ b/chrome/browser/policy/policy_service.h
@@ -76,6 +76,11 @@ class PolicyService {
// already true when an Observer is registered, then that Observer will not
// have a OnPolicyServiceInitialized() notification.
virtual bool IsInitializationComplete() const = 0;
+
+ // Asks the PolicyService to reload policy from all available policy sources.
+ // |callback| is invoked once every source has reloaded its policies, and
+ // GetPolicies() is guaranteed to return the updated values at that point.
+ virtual void RefreshPolicies(const base::Closure& callback) = 0;
};
// A registrar that only observes changes to particular policies within the
« no previous file with comments | « chrome/browser/policy/network_configuration_updater_unittest.cc ('k') | chrome/browser/policy/policy_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698