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

Unified Diff: components/policy/core/common/schema_registry.cc

Issue 78953002: Fixes and improvements to cloud policy for extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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: components/policy/core/common/schema_registry.cc
diff --git a/components/policy/core/common/schema_registry.cc b/components/policy/core/common/schema_registry.cc
index 16f71e5318a6345c5afd03fa52ff912a23508b20..ff9557956f3fcde42a78097caccd60f814d825bc 100644
--- a/components/policy/core/common/schema_registry.cc
+++ b/components/policy/core/common/schema_registry.cc
@@ -29,6 +29,9 @@ void SchemaRegistry::RegisterComponent(const PolicyNamespace& ns,
void SchemaRegistry::RegisterComponents(PolicyDomain domain,
const ComponentMap& components) {
+ // Don't issue notifications if nothing is being registered.
+ if (components.empty())
+ return;
// Assume that a schema was updated if the namespace was already registered
// before.
DomainMap map(schema_map_->GetDomains());

Powered by Google App Engine
This is Rietveld 408576698