Chromium Code Reviews| Index: chrome/browser/browser_about_handler.cc |
| diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc |
| index 8fc14bc3aca4b009e2f52423289b5a081497c45e..0d48d22b66458b82acae827ee0b315ef8bfb948e 100644 |
| --- a/chrome/browser/browser_about_handler.cc |
| +++ b/chrome/browser/browser_about_handler.cc |
| @@ -92,26 +92,10 @@ bool WillHandleBrowserAboutURL(GURL* url, |
| path = url->path(); |
| // Redirect chrome://settings, unless MD settings is enabled. |
|
dpapad
2017/06/01 00:12:54
Comment obsolete?
Dan Beam
2017/06/03 00:11:02
Done.
|
| } else if (host == chrome::kChromeUISettingsHost) { |
| - if (base::FeatureList::IsEnabled(features::kMaterialDesignSettings)) { |
| - return true; // Prevent further rewriting - this is a valid URL. |
| - } else if (::switches::SettingsWindowEnabled()) { |
| - host = chrome::kChromeUISettingsFrameHost; |
| - } else { |
| - host = chrome::kChromeUIUberHost; |
| - path = chrome::kChromeUISettingsHost + url->path(); |
| - } |
| + return true; // Prevent further rewriting - this is a valid URL. |
| // Redirect chrome://help, unless MD settings is enabled. |
| } else if (host == chrome::kChromeUIHelpHost) { |
| - if (base::FeatureList::IsEnabled(features::kMaterialDesignSettings)) { |
| - return false; // Handled in the HandleWebUI handler. |
| - } else if (::switches::SettingsWindowEnabled()) { |
| - host = chrome::kChromeUISettingsFrameHost; |
| - if (url->path().empty() || url->path() == "/") |
| - path = chrome::kChromeUIHelpHost; |
| - } else { |
| - host = chrome::kChromeUIUberHost; |
| - path = chrome::kChromeUIHelpHost + url->path(); |
| - } |
| + return false; // Handled in the HandleWebUI handler. |
| } |
| GURL::Replacements replacements; |