| 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 1085b740a2247975eb87dfb9890a99279c1b5000..6f2d5c3422bf2a1df556be8554826ca9b2abf8e2 100644
|
| --- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
|
| +++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
|
| @@ -410,6 +410,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.
|
|
|