Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Issue 205983005: [Android] Rewrite old-style NTP URLs to new-style URLs. (Closed)

Created:
6 years, 9 months ago by newt (away)
Modified:
6 years, 8 months ago
Reviewers:
jam, samarth
CC:
chromium-reviews
Visibility:
Public.

Description

[Android] Rewrite old-style NTP URLs to new-style URLs. For example, chrome://newtab#bookmarks becomes chrome-native://bookmarks. This helps users transition smoothly to the new NTP: any tabs open to the old NTP when the user updates will start showing the new NTP. Also: opening a foreign session tab from other platforms and pressing back until arriving at chrome://newtab will now show the new NTP. BUG=354063 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260218

Patch Set 1 #

Total comments: 4

Patch Set 2 : addressed comments, and removed handling of recent_tabs host #

Patch Set 3 : register chrome-native as standard scheme, add back recent_tabs handling #

Total comments: 2

Patch Set 4 : removed chrome-native from savable schemes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -0 lines) Patch
A chrome/browser/android/new_tab_page_url_handler.h View 2 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/android/new_tab_page_url_handler.cc View 1 2 1 chunk +48 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_content_client.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
newt (away)
jam/samarth: could you help me understand if I'm using BrowserURLHandler::AddHandlerPair() correctly here? My goal is ...
6 years, 9 months ago (2014-03-21 17:16:04 UTC) #1
jam
lgtm https://codereview.chromium.org/205983005/diff/1/chrome/browser/android/new_tab_page_url_handler.cc File chrome/browser/android/new_tab_page_url_handler.cc (right): https://codereview.chromium.org/205983005/diff/1/chrome/browser/android/new_tab_page_url_handler.cc#newcode23 chrome/browser/android/new_tab_page_url_handler.cc:23: if (StartsWithASCII(ref, "bookmarks", true)) { nit: there are ...
6 years, 9 months ago (2014-03-21 19:47:26 UTC) #2
newt (away)
On 2014/03/21 19:47:26, jam wrote: > lgtm > > https://codereview.chromium.org/205983005/diff/1/chrome/browser/android/new_tab_page_url_handler.cc > File chrome/browser/android/new_tab_page_url_handler.cc (right): > ...
6 years, 9 months ago (2014-03-21 22:23:26 UTC) #3
samarth
On 2014/03/21 17:16:04, newt wrote: > jam/samarth: could you help me understand if I'm using ...
6 years, 9 months ago (2014-03-21 22:31:59 UTC) #4
samarth
https://codereview.chromium.org/205983005/diff/1/chrome/browser/android/new_tab_page_url_handler.cc File chrome/browser/android/new_tab_page_url_handler.cc (right): https://codereview.chromium.org/205983005/diff/1/chrome/browser/android/new_tab_page_url_handler.cc#newcode17 chrome/browser/android/new_tab_page_url_handler.cc:17: // static It's not really "static". I'd just leave ...
6 years, 9 months ago (2014-03-21 22:32:08 UTC) #5
newt (away)
https://codereview.chromium.org/205983005/diff/1/chrome/browser/android/new_tab_page_url_handler.cc File chrome/browser/android/new_tab_page_url_handler.cc (right): https://codereview.chromium.org/205983005/diff/1/chrome/browser/android/new_tab_page_url_handler.cc#newcode17 chrome/browser/android/new_tab_page_url_handler.cc:17: // static On 2014/03/21 22:32:09, samarth wrote: > It's ...
6 years, 8 months ago (2014-03-26 17:47:25 UTC) #6
newt (away)
The CQ bit was checked by newt@chromium.org
6 years, 8 months ago (2014-03-26 17:47:34 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/newt@chromium.org/205983005/20001
6 years, 8 months ago (2014-03-26 17:48:04 UTC) #8
newt (away)
The CQ bit was unchecked by newt@chromium.org
6 years, 8 months ago (2014-03-26 18:13:18 UTC) #9
newt (away)
I've modified chrome_content_client.cc to allow chrome-native URLs to be correctly parsed. PTAL.
6 years, 8 months ago (2014-03-26 18:16:55 UTC) #10
newt (away)
jam: ping on the small additional change in chrome_content_client.cc
6 years, 8 months ago (2014-03-27 18:12:58 UTC) #11
samarth
On 2014/03/21 22:31:59, samarth wrote: > On 2014/03/21 17:16:04, newt wrote: > > jam/samarth: could ...
6 years, 8 months ago (2014-03-27 18:18:27 UTC) #12
newt (away)
> Given, do you think you need a reverse handler? The benefit I see would ...
6 years, 8 months ago (2014-03-27 18:34:20 UTC) #13
jam
On 2014/03/27 18:34:20, newt wrote: > > Given, do you think you need a reverse ...
6 years, 8 months ago (2014-03-27 22:54:18 UTC) #14
newt (away)
https://codereview.chromium.org/205983005/diff/40001/chrome/common/chrome_content_client.cc File chrome/common/chrome_content_client.cc (right): https://codereview.chromium.org/205983005/diff/40001/chrome/common/chrome_content_client.cc#newcode483 chrome/common/chrome_content_client.cc:483: savable_schemes->push_back(chrome::kChromeNativeScheme); On 2014/03/27 22:54:19, jam wrote: > is this ...
6 years, 8 months ago (2014-03-28 17:54:44 UTC) #15
jam
lgtm
6 years, 8 months ago (2014-03-28 18:00:24 UTC) #16
samarth
lgtm
6 years, 8 months ago (2014-03-28 18:41:12 UTC) #17
newt (away)
The CQ bit was checked by newt@chromium.org
6 years, 8 months ago (2014-03-28 18:42:39 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/newt@chromium.org/205983005/60001
6 years, 8 months ago (2014-03-28 18:45:17 UTC) #19
commit-bot: I haz the power
6 years, 8 months ago (2014-03-28 18:54:13 UTC) #20
Message was sent while issue was closed.
Change committed as 260218

Powered by Google App Engine
This is Rietveld 408576698