| 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 fa712adbd24429c6a43ec7e183304f299b5209ac..0aeca4fc686169db66c6c82eb1faf1dbe068cc2b 100644
|
| --- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
|
| +++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
|
| @@ -225,20 +225,10 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
|
| // This will get called a lot to check all URLs, so do a quick check of other
|
| // schemes to filter out most URLs.
|
| if (!url.SchemeIs(chrome::kChromeDevToolsScheme) &&
|
| - !url.SchemeIs(chrome::kChromeInternalScheme) &&
|
| !url.SchemeIs(chrome::kChromeUIScheme)) {
|
| return NULL;
|
| }
|
|
|
| - // Special case the new tab page. In older versions of Chrome, the new tab
|
| - // page was hosted at chrome-internal:<blah>. This might be in people's saved
|
| - // sessions or bookmarks, so we say any URL with that scheme triggers the new
|
| - // tab page.
|
| - if (url.host() == chrome::kChromeUINewTabHost ||
|
| - url.SchemeIs(chrome::kChromeInternalScheme)) {
|
| - return &NewWebUI<NewTabUI>;
|
| - }
|
| -
|
| /****************************************************************************
|
| * Please keep this in alphabetical order. If #ifs or special logics are
|
| * required, add it below in the appropriate section.
|
| @@ -283,6 +273,8 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui,
|
| #endif
|
| if (url.host() == chrome::kChromeUINetInternalsHost)
|
| return &NewWebUI<NetInternalsUI>;
|
| + if (url.host() == chrome::kChromeUINewTabHost)
|
| + return &NewWebUI<NewTabUI>;
|
| if (url.host() == chrome::kChromeUIOmniboxHost)
|
| return &NewWebUI<OmniboxUI>;
|
| if (url.host() == chrome::kChromeUIPredictorsHost)
|
|
|