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

Issue 2206613003: Settings Router Refactor: Support dynamic parameters (Closed)

Created:
4 years, 4 months ago by tommycli
Modified:
4 years, 4 months ago
Reviewers:
stevenjb, 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, Dan Beam
Base URL:
https://chromium.googlesource.com/chromium/src.git@223-settings-router-handle-random-urls-better
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Settings Router Refactor: Support dynamic parameters BUG=632382 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/ad273fdd66e17f67ae992933dd9438a58554f92e Cr-Commit-Position: refs/heads/master@{#409601}

Patch Set 1 #

Patch Set 2 : fix nav logic a bit #

Patch Set 3 : fix #

Total comments: 4

Patch Set 4 : Change to using URLSearchParams type #

Total comments: 2

Patch Set 5 : compare dynamic params also #

Total comments: 5

Patch Set 6 : return a copy #

Patch Set 7 : Don't use Internet as test route. That's CrOS only. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -15 lines) Patch
M chrome/browser/resources/settings/route.js View 1 2 3 4 5 3 chunks +44 lines, -15 lines 0 comments Download
M chrome/test/data/webui/settings/cr_settings_browsertest.js View 1 2 3 4 5 6 1 chunk +42 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 38 (21 generated)
tommycli
stevenjb (and anyone else with drivebys): How does the shape of this solution look to ...
4 years, 4 months ago (2016-08-02 21:26:36 UTC) #11
Dan Beam
https://codereview.chromium.org/2206613003/diff/40001/chrome/browser/resources/settings/route.js File chrome/browser/resources/settings/route.js (right): https://codereview.chromium.org/2206613003/diff/40001/chrome/browser/resources/settings/route.js#newcode317 chrome/browser/resources/settings/route.js:317: window.location.search.substring(1).split('&').forEach(function(pair) { OH NO YOU DI'NT https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams https://cs.chromium.org/chromium/src/ui/webui/resources/js/util.js?q=util.js&sq=package:chromium&dr&l=72
4 years, 4 months ago (2016-08-02 21:44:50 UTC) #15
stevenjb
https://codereview.chromium.org/2206613003/diff/40001/chrome/browser/resources/settings/route.js File chrome/browser/resources/settings/route.js (right): https://codereview.chromium.org/2206613003/diff/40001/chrome/browser/resources/settings/route.js#newcode310 chrome/browser/resources/settings/route.js:310: * @private {!Object} Can/should we type this?
4 years, 4 months ago (2016-08-02 22:17:17 UTC) #16
tommycli
dbeam/stevenjb: thanks guys, do you like this version better? https://codereview.chromium.org/2206613003/diff/40001/chrome/browser/resources/settings/route.js File chrome/browser/resources/settings/route.js (right): https://codereview.chromium.org/2206613003/diff/40001/chrome/browser/resources/settings/route.js#newcode310 chrome/browser/resources/settings/route.js:310: ...
4 years, 4 months ago (2016-08-02 22:46:34 UTC) #17
Dan Beam
https://codereview.chromium.org/2206613003/diff/60001/chrome/browser/resources/settings/route.js File chrome/browser/resources/settings/route.js (right): https://codereview.chromium.org/2206613003/diff/60001/chrome/browser/resources/settings/route.js#newcode342 chrome/browser/resources/settings/route.js:342: if (assert(route) == currentRoute_ && !opt_dynamicParameters) why are we ...
4 years, 4 months ago (2016-08-03 01:30:59 UTC) #18
tommycli
dbeam: thanks! https://codereview.chromium.org/2206613003/diff/60001/chrome/browser/resources/settings/route.js File chrome/browser/resources/settings/route.js (right): https://codereview.chromium.org/2206613003/diff/60001/chrome/browser/resources/settings/route.js#newcode342 chrome/browser/resources/settings/route.js:342: if (assert(route) == currentRoute_ && !opt_dynamicParameters) On ...
4 years, 4 months ago (2016-08-03 16:01:39 UTC) #19
Dan Beam
https://codereview.chromium.org/2206613003/diff/80001/chrome/browser/resources/settings/route.js File chrome/browser/resources/settings/route.js (right): https://codereview.chromium.org/2206613003/diff/80001/chrome/browser/resources/settings/route.js#newcode344 chrome/browser/resources/settings/route.js:344: params.toString() == currentQueryParameters_.toString()) { this breaks when append() is ...
4 years, 4 months ago (2016-08-03 17:04:28 UTC) #20
Dan Beam
https://codereview.chromium.org/2206613003/diff/80001/chrome/browser/resources/settings/route.js File chrome/browser/resources/settings/route.js (right): https://codereview.chromium.org/2206613003/diff/80001/chrome/browser/resources/settings/route.js#newcode333 chrome/browser/resources/settings/route.js:333: var getQueryParameters = function() { return currentQueryParameters_; }; can ...
4 years, 4 months ago (2016-08-03 17:18:00 UTC) #21
tommycli
dbeam: Thanks! https://codereview.chromium.org/2206613003/diff/80001/chrome/browser/resources/settings/route.js File chrome/browser/resources/settings/route.js (right): https://codereview.chromium.org/2206613003/diff/80001/chrome/browser/resources/settings/route.js#newcode333 chrome/browser/resources/settings/route.js:333: var getQueryParameters = function() { return currentQueryParameters_; ...
4 years, 4 months ago (2016-08-03 17:24:39 UTC) #22
Dan Beam
lgtm, i hope global navigation in tests isn't flaky
4 years, 4 months ago (2016-08-03 18:01:01 UTC) #25
stevenjb
lgtm
4 years, 4 months ago (2016-08-03 18:02:32 UTC) #26
tommycli
thanks guys! sending it in. If this design needs tweaking as you guys actually use ...
4 years, 4 months ago (2016-08-03 18:04:17 UTC) #27
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/2206613003/100001
4 years, 4 months ago (2016-08-03 18:04:41 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/266872)
4 years, 4 months ago (2016-08-03 18:43:34 UTC) #32
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/2206613003/120001
4 years, 4 months ago (2016-08-03 18:59:43 UTC) #35
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 4 months ago (2016-08-03 19:57:44 UTC) #36
commit-bot: I haz the power
4 years, 4 months ago (2016-08-03 20:00:43 UTC) #38
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/ad273fdd66e17f67ae992933dd9438a58554f92e
Cr-Commit-Position: refs/heads/master@{#409601}

Powered by Google App Engine
This is Rietveld 408576698