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

Unified Diff: chrome/browser/policy/schema_registry.cc

Issue 56623005: Policy providers all get a SchemaRegistry to work with. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-9-purge-with-callback
Patch Set: fixed win tests 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/schema_registry.cc
diff --git a/chrome/browser/policy/schema_registry.cc b/chrome/browser/policy/schema_registry.cc
index a456708d8598ad582cb90a84ca3e388736cf5154..f005bd02354a5b5a53074553320941d705a6c4bc 100644
--- a/chrome/browser/policy/schema_registry.cc
+++ b/chrome/browser/policy/schema_registry.cc
@@ -53,9 +53,8 @@ void SchemaRegistry::RemoveObserver(Observer* observer) {
}
void SchemaRegistry::Notify(bool has_new_schemas) {
- FOR_EACH_OBSERVER(Observer,
- observers_,
- OnSchemaRegistryUpdated(schema_map_, has_new_schemas));
+ FOR_EACH_OBSERVER(
+ Observer, observers_, OnSchemaRegistryUpdated(has_new_schemas));
}
bool SchemaRegistry::HasObservers() const {
@@ -108,9 +107,7 @@ void CombinedSchemaRegistry::UnregisterComponent(const PolicyNamespace& ns) {
}
}
-void CombinedSchemaRegistry::OnSchemaRegistryUpdated(
- const scoped_refptr<SchemaMap>& current_map,
- bool has_new_schemas) {
+void CombinedSchemaRegistry::OnSchemaRegistryUpdated(bool has_new_schemas) {
Combine(has_new_schemas);
}

Powered by Google App Engine
This is Rietveld 408576698