[Android] Redirect obsolete chrome:// URLs to NTP.
commite124019512f944ad49114dea310531418d53ff7e
authornewt <newt@chromium.org>
Fri, 29 May 2015 22:14:36 +0000 (29 15:14 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 29 May 2015 22:14:57 +0000 (29 22:14 +0000)
tree9475b5d3397e8f2c89bda44aaacdbc8a996df847
parent917f41afd0dc36884b609d1db659427e1e0a0f2a
[Android] Redirect obsolete chrome:// URLs to NTP.

When upgrading Chrome from an older version, tabs that are currently
showing chrome://newtab or chrome://welcome will now redirect to the
NTP. Previously, we'd instead show a totally blank page (not even an
error message).

Note: new_tab_page_url_handler.cc has similar logic for redirecting
chrome://newtab and chrome://welcome, but it only affects new
nagivations, not navigations that are restored from serialized tab
state.

BUG=491878

Review URL: https://codereview.chromium.org/1165613002

Cr-Commit-Position: refs/heads/master@{#332057}
chrome/android/java_staging/src/org/chromium/chrome/browser/tab/ChromeTab.java