Index: chrome/browser/ui/webui/policy_ui.cc |
diff --git a/chrome/browser/ui/webui/policy_ui.cc b/chrome/browser/ui/webui/policy_ui.cc |
index 15c0b9837211fc14efdd112887553d214f478882..b1f3c398b6e8d196b38bb783c2ea10801e027ca0 100644 |
--- a/chrome/browser/ui/webui/policy_ui.cc |
+++ b/chrome/browser/ui/webui/policy_ui.cc |
@@ -613,7 +613,7 @@ void PolicyUIHandler::SendPolicyNames() const { |
Profile* profile = Profile::FromWebUI(web_ui()); |
policy::SchemaRegistry* registry = |
policy::SchemaRegistryServiceFactory::GetForContext( |
- profile->GetOriginalProfile()); |
+ profile->GetOriginalProfile())->registry(); |
scoped_refptr<policy::SchemaMap> schema_map = registry->schema_map(); |
// Add Chrome policy names. |