| 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 bb85a656a97af5df400504e182f7dde30dca4a6e..ba66f8f815ea2a0910c67b03c757171883358be8 100644
|
| --- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
|
| +++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
|
| @@ -53,6 +53,7 @@
|
| #include "chrome/browser/ui/webui/translate_internals/translate_internals_ui.h"
|
| #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h"
|
| #include "chrome/browser/ui/webui/version_ui.h"
|
| +#include "chrome/common/chrome_features.h"
|
| #include "chrome/common/chrome_switches.h"
|
| #include "chrome/common/pref_names.h"
|
| #include "chrome/common/url_constants.h"
|
| @@ -405,7 +406,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
|
| return &NewWebUI<extensions::ExtensionsUI>;
|
| }
|
| // Material Design history is on its own host, rather than on an Uber page.
|
| - if (::switches::MdHistoryEnabled() &&
|
| + if (base::FeatureList::IsEnabled(features::kMaterialDesignHistoryFeature) &&
|
| url.host() == chrome::kChromeUIHistoryHost) {
|
| return &NewWebUI<MdHistoryUI>;
|
| }
|
|
|