| Index: chrome/browser/browser_url_handler.cc
|
| ===================================================================
|
| --- chrome/browser/browser_url_handler.cc (revision 30048)
|
| +++ chrome/browser/browser_url_handler.cc (working copy)
|
| @@ -22,10 +22,20 @@
|
| return false;
|
| }
|
|
|
| -// Handles URLs for DOM UI. These URLs need no rewriting.
|
| +// Handles rewriting DOM UI URLs.
|
| static bool HandleDOMUI(GURL* url, Profile* profile) {
|
| if (!DOMUIFactory::UseDOMUIForURL(*url))
|
| return false;
|
| +
|
| + // 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->SchemeIs(chrome::kChromeInternalScheme)) {
|
| + // Rewrite it with the proper new tab URL.
|
| + *url = GURL(chrome::kChromeUINewTabURL);
|
| + }
|
| +
|
| return true;
|
| }
|
|
|
|
|