| 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..535197e87b92272b5bc1c60d8c26f235df35dedc 100644
|
| --- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
|
| +++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
|
| @@ -18,6 +18,7 @@
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/profiles/profile_manager.h"
|
| #include "chrome/browser/search/suggestions/suggestions_ui.h"
|
| +#include "chrome/browser/ui/chrome_pages.h"
|
| #include "chrome/browser/ui/webui/about_ui.h"
|
| #include "chrome/browser/ui/webui/bookmarks_ui.h"
|
| #include "chrome/browser/ui/webui/components_ui.h"
|
| @@ -397,7 +398,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
|
| return &NewWebUI<IdentityInternalsUI>;
|
| if (url.host() == chrome::kChromeUINewTabHost)
|
| return &NewWebUI<NewTabUI>;
|
| - if (url.host() == chrome::kChromeUIMdSettingsHost)
|
| + if (url.host() == chrome::GetMdSettingsHost())
|
| return &NewWebUI<settings::MdSettingsUI>;
|
| // If the material design extensions page is enabled, it gets its own host.
|
| // Otherwise, it's handled by the uber settings page.
|
| @@ -416,7 +417,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
|
| // Handle chrome://settings if settings in a window and about in settings
|
| // are enabled.
|
| if (url.host() == chrome::kChromeUISettingsFrameHost ||
|
| - (url.host() == chrome::kChromeUISettingsHost &&
|
| + (url.host() == chrome::GetLegacySettingsHost() &&
|
| ::switches::AboutInSettingsEnabled())) {
|
| return &NewWebUI<options::OptionsUI>;
|
| }
|
| @@ -776,9 +777,9 @@ base::RefCountedMemory* ChromeWebUIControllerFactory::GetFaviconResourceBytes(
|
| return MdDownloadsUI::GetFaviconResourceBytes(scale_factor);
|
|
|
| // Android doesn't use the Options/Settings pages.
|
| - if (page_url.host() == chrome::kChromeUISettingsHost ||
|
| + if (page_url.host() == chrome::GetLegacySettingsHost() ||
|
| page_url.host() == chrome::kChromeUISettingsFrameHost ||
|
| - page_url.host() == chrome::kChromeUIMdSettingsHost)
|
| + page_url.host() == chrome::GetMdSettingsHost())
|
| return settings_utils::GetFaviconResourceBytes(scale_factor);
|
|
|
| #if defined(ENABLE_EXTENSIONS)
|
|
|