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

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

Issue 2481233004: Rename SchemaRegistry::SetReady to SetDomainReady (Closed)
Patch Set: Created 4 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 f726c06dceb47d6acff4934e2649e5f9975880a8..6482962a51840786e31b19201331da324549932d 100644
--- a/components/policy/core/common/schema_registry.cc
+++ b/components/policy/core/common/schema_registry.cc
@@ -66,7 +66,7 @@ bool SchemaRegistry::IsReady() const {
return true;
}
-void SchemaRegistry::SetReady(PolicyDomain domain) {
+void SchemaRegistry::SetDomainReady(PolicyDomain domain) {
if (domains_ready_[domain])
return;
domains_ready_[domain] = true;
@@ -78,12 +78,12 @@ void SchemaRegistry::SetReady(PolicyDomain domain) {
void SchemaRegistry::SetAllDomainsReady() {
for (int i = 0; i < POLICY_DOMAIN_SIZE; ++i)
- SetReady(static_cast<PolicyDomain>(i));
+ SetDomainReady(static_cast<PolicyDomain>(i));
}
void SchemaRegistry::SetExtensionsDomainsReady() {
- SetReady(POLICY_DOMAIN_EXTENSIONS);
- SetReady(POLICY_DOMAIN_SIGNIN_EXTENSIONS);
+ SetDomainReady(POLICY_DOMAIN_EXTENSIONS);
+ SetDomainReady(POLICY_DOMAIN_SIGNIN_EXTENSIONS);
}
void SchemaRegistry::AddObserver(Observer* observer) {

Powered by Google App Engine
This is Rietveld 408576698