Index: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
diff --git a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
index 53c542e60a24688b192104f508dcb5727231c3ed..c7a3e9e7c62ec2fa75016a014dd1a0f00a518a81 100644 |
--- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
+++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
@@ -542,6 +542,10 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui, |
#if defined(ENABLE_CONFIGURATION_POLICY) |
if (url.host() == chrome::kChromeUIPolicyHost) |
return &NewWebUI<PolicyUI>; |
+ if (url.host() == chrome::kChromeUIMdPolicyHost && |
+ switches::MdPolicyPageEnabled()) { |
+ return &NewWebUI<PolicyMaterialDesignUI>; |
+ } |
#if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
if (url.host() == chrome::kChromeUIProfileSigninConfirmationHost) |
return &NewWebUI<ProfileSigninConfirmationUI>; |