| 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 b05d5fdd8f10ff0a174c654a724814a937724b44..d2c492b60f93a57bbdaf5d119965114ad1ba4c70 100644
|
| --- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
|
| +++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
|
| @@ -392,8 +392,13 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
|
| if (url.host() == chrome::kChromeUIQuotaInternalsHost)
|
| return &NewWebUI<QuotaInternalsUI>;
|
| // Settings are implemented with native UI elements on Android.
|
| - if (url.host() == chrome::kChromeUISettingsFrameHost)
|
| + // Handle chrome://settings if settings in a window and about in settings
|
| + // are enabled.
|
| + if (url.host() == chrome::kChromeUISettingsFrameHost ||
|
| + (url.host() == chrome::kChromeUISettingsHost &&
|
| + ::switches::AboutInSettingsEnabled())) {
|
| return &NewWebUI<options::OptionsUI>;
|
| + }
|
| if (url.host() == chrome::kChromeUISuggestionsInternalsHost)
|
| return &NewWebUI<SuggestionsInternalsUI>;
|
| if (url.host() == chrome::kChromeUISyncFileSystemInternalsHost)
|
|
|