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

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

Issue 10174003: Pass the previous and the current PolicyMap to Observers of the PolicyService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 124c41c0007f4764c6dcabb92d380714cd015dcb..5b5f3f33507a61bb6a964191b3c4571bca07e9bd 100644
--- a/chrome/browser/policy/policy_service.h
+++ b/chrome/browser/policy/policy_service.h
@@ -34,9 +34,12 @@ class PolicyService {
// Invoked whenever policies for the |domain|, |component_id| namespace are
// modified. This is only invoked for changes that happen after AddObserver
- // is called.
+ // is called. |previous| contains the values of the policies before the
+ // update, and |current| contains the current values.
virtual void OnPolicyUpdated(PolicyDomain domain,
- const std::string& component_id) = 0;
+ const std::string& component_id,
+ const PolicyMap& previous,
+ const PolicyMap& current) = 0;
// Invoked at most once, when the PolicyService becomes ready. If
// IsInitializationComplete() is false, then this will be invoked once all

Powered by Google App Engine
This is Rietveld 408576698