| Index: chrome/browser/browser_about_handler.cc
|
| diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
|
| index 3601b8158c4d0616a22d0529f96daed962d466ba..9c61033eb0f2ec9eea28c25301c1a7cb0a66caef 100644
|
| --- a/chrome/browser/browser_about_handler.cc
|
| +++ b/chrome/browser/browser_about_handler.cc
|
| @@ -71,24 +71,16 @@ bool WillHandleBrowserAboutURL(GURL* url,
|
| // Replace sync with sync-internals (for legacy reasons).
|
| } else if (host == chrome::kChromeUISyncHost) {
|
| host = chrome::kChromeUISyncInternalsHost;
|
| - // Redirect chrome://extensions.
|
| +// Redirect chrome://extensions, chrome://extensions-frame, and
|
| +// chrome://settings/extensions all to chrome://extensions and forward path.
|
| #if BUILDFLAG(ENABLE_EXTENSIONS)
|
| - } else if (host == chrome::kChromeUIExtensionsHost) {
|
| - // If the material design extensions page is enabled, it gets its own host.
|
| - // Otherwise, it's handled by the uber settings page.
|
| - if (base::FeatureList::IsEnabled(features::kMaterialDesignExtensions)) {
|
| - host = chrome::kChromeUIExtensionsHost;
|
| - path = url->path();
|
| - } else {
|
| - host = chrome::kChromeUIUberHost;
|
| - path = chrome::kChromeUIExtensionsHost + url->path();
|
| - }
|
| - // Redirect chrome://settings/extensions (legacy URL).
|
| - } else if (host == chrome::kChromeUISettingsHost &&
|
| - url->path() ==
|
| - std::string("/") + chrome::kDeprecatedExtensionsSubPage) {
|
| - host = chrome::kChromeUIUberHost;
|
| - path = chrome::kChromeUIExtensionsHost;
|
| + } else if (host == chrome::kChromeUIExtensionsHost ||
|
| + host == chrome::kChromeUIExtensionsFrameHost ||
|
| + (host == chrome::kChromeUISettingsHost &&
|
| + url->path() ==
|
| + std::string("/") + chrome::kDeprecatedExtensionsSubPage)) {
|
| + host = chrome::kChromeUIExtensionsHost;
|
| + path = url->path();
|
| #endif // BUILDFLAG(ENABLE_EXTENSIONS)
|
| } else if (host == chrome::kChromeUIHistoryHost) {
|
| // Redirect chrome://history.
|
|
|