| 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 6bc735b6b10f08453ed8688a52abf453d77f44f2..e4ae4c29613f18799f9e8b9de04abde0ed596b88 100644
|
| --- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
|
| +++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
|
| @@ -419,6 +419,11 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
|
| url.host() == chrome::kChromeUIHistoryHost) {
|
| return &NewWebUI<MdHistoryUI>;
|
| }
|
| + // Material Design Settings gets its own host, if enabled.
|
| + if (base::FeatureList::IsEnabled(features::kMaterialDesignSettingsFeature) &&
|
| + url.host() == chrome::kChromeUISettingsHost) {
|
| + return &NewWebUI<settings::MdSettingsUI>;
|
| + }
|
| if (url.host() == chrome::kChromeUIQuotaInternalsHost)
|
| return &NewWebUI<QuotaInternalsUI>;
|
| // Settings are implemented with native UI elements on Android.
|
|
|