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

Issue 2200013002: Settings Router Refactor: Improve chrome://md-settings/foobar behavior. (Closed)

Created:
4 years, 4 months ago by tommycli
Modified:
4 years, 4 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Settings Router Refactor: Improve chrome://md-settings/foobar behavior. Correctly reset the URL path to '/' when the user directly navigates to a non-existent URL. BUG=608115 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/6c7966816ea0d4304c1caba897668ec12964e7eb Cr-Commit-Position: refs/heads/master@{#409252}

Patch Set 1 #

Total comments: 4

Patch Set 2 : update #

Patch Set 3 : remove some junk #

Total comments: 2

Patch Set 4 : add non existent route test #

Patch Set 5 : revert line change #

Total comments: 3

Messages

Total messages: 21 (4 generated)
tommycli
dbeam: PTAL, thanks https://codereview.chromium.org/2200013002/diff/1/chrome/browser/resources/settings/route.js File chrome/browser/resources/settings/route.js (right): https://codereview.chromium.org/2200013002/diff/1/chrome/browser/resources/settings/route.js#newcode324 chrome/browser/resources/settings/route.js:324: window.history.pushState(undefined, '', route.path); It's unused (by ...
4 years, 4 months ago (2016-08-01 23:38:18 UTC) #3
Dan Beam
https://codereview.chromium.org/2200013002/diff/1/chrome/browser/resources/settings/route.js File chrome/browser/resources/settings/route.js (right): https://codereview.chromium.org/2200013002/diff/1/chrome/browser/resources/settings/route.js#newcode300 chrome/browser/resources/settings/route.js:300: window.history.replaceState(undefined, '', currentRoute_.path); can we do this only if ...
4 years, 4 months ago (2016-08-01 23:39:20 UTC) #4
tommycli
dbeam: Thanks. It became a bit longer because I didn't want to leak temp vars, ...
4 years, 4 months ago (2016-08-02 00:00:40 UTC) #5
Dan Beam
https://codereview.chromium.org/2200013002/diff/40001/chrome/browser/resources/settings/route.js File chrome/browser/resources/settings/route.js (right): https://codereview.chromium.org/2200013002/diff/40001/chrome/browser/resources/settings/route.js#newcode307 chrome/browser/resources/settings/route.js:307: })(); how would this leak global variables? var currentRoute_ ...
4 years, 4 months ago (2016-08-02 00:11:04 UTC) #6
tommycli
https://codereview.chromium.org/2200013002/diff/40001/chrome/browser/resources/settings/route.js File chrome/browser/resources/settings/route.js (right): https://codereview.chromium.org/2200013002/diff/40001/chrome/browser/resources/settings/route.js#newcode307 chrome/browser/resources/settings/route.js:307: })(); On 2016/08/02 00:11:04, Dan Beam wrote: > how ...
4 years, 4 months ago (2016-08-02 00:14:29 UTC) #7
Dan Beam
lgtm
4 years, 4 months ago (2016-08-02 00:26:59 UTC) #8
Dan Beam
might be worth adding a test for this behavior, though
4 years, 4 months ago (2016-08-02 00:27:09 UTC) #9
tommycli
On 2016/08/02 00:27:09, Dan Beam wrote: > might be worth adding a test for this ...
4 years, 4 months ago (2016-08-02 16:12:06 UTC) #10
tommycli
dbeam: PTAL, I added a test. Thanks!
4 years, 4 months ago (2016-08-02 17:23:14 UTC) #11
Dan Beam
lgtm++
4 years, 4 months ago (2016-08-02 17:23:54 UTC) #12
tommycli
On 2016/08/02 17:23:54, Dan Beam wrote: > lgtm++ Thanks! sending to CQ
4 years, 4 months ago (2016-08-02 17:24:38 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2200013002/80001
4 years, 4 months ago (2016-08-02 17:25:36 UTC) #15
michaelpg
https://codereview.chromium.org/2200013002/diff/80001/chrome/browser/resources/settings/route.js File chrome/browser/resources/settings/route.js (right): https://codereview.chromium.org/2200013002/diff/80001/chrome/browser/resources/settings/route.js#newcode305 chrome/browser/resources/settings/route.js:305: window.history.replaceState(undefined, '', Route.BASIC.path); just a thought, maybe we should ...
4 years, 4 months ago (2016-08-02 17:27:34 UTC) #16
tommycli
https://codereview.chromium.org/2200013002/diff/80001/chrome/browser/resources/settings/route.js File chrome/browser/resources/settings/route.js (right): https://codereview.chromium.org/2200013002/diff/80001/chrome/browser/resources/settings/route.js#newcode305 chrome/browser/resources/settings/route.js:305: window.history.replaceState(undefined, '', Route.BASIC.path); On 2016/08/02 17:27:33, michaelpg wrote: > ...
4 years, 4 months ago (2016-08-02 17:33:25 UTC) #17
Dan Beam
https://codereview.chromium.org/2200013002/diff/80001/chrome/browser/resources/settings/route.js File chrome/browser/resources/settings/route.js (right): https://codereview.chromium.org/2200013002/diff/80001/chrome/browser/resources/settings/route.js#newcode305 chrome/browser/resources/settings/route.js:305: window.history.replaceState(undefined, '', Route.BASIC.path); On 2016/08/02 17:33:25, tommycli wrote: > ...
4 years, 4 months ago (2016-08-02 17:39:13 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-02 18:28:06 UTC) #19
commit-bot: I haz the power
4 years, 4 months ago (2016-08-02 18:30:16 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6c7966816ea0d4304c1caba897668ec12964e7eb
Cr-Commit-Position: refs/heads/master@{#409252}

Powered by Google App Engine
This is Rietveld 408576698