| 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 e1601674a00286e571d9a71dee7c1fbc09e8a0cd..6d85f81c6cd1455327a8864d35ba81c45fa36635 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"
|
| @@ -403,7 +404,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>;
|
| }
|
|
|