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

Issue 2538283002: MD Settings: Fix "Check for updates" button regression. (Closed)

Created:
4 years ago by dpapad
Modified:
4 years ago
Reviewers:
dschuyler, Dan Beam
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-settings_chromium.org, Dan Beam, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, stevenjb+watch-md-settings_chromium.org, stevenjb
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Fix "Check for updates" button regression. Had to move "if expr" conditional logic to JS from HTML, such that the visibility of the three buttons can be easily checked by the parent container (which needs to be hidden when all of its children are hidden). This CL also fixes the issue where the update status message was erroneously visible before the user had cliced on the "Check for updates" button. BUG=669259 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/d47dc0a551b0fedc4cd58db1498426405dd2d044 Cr-Commit-Position: refs/heads/master@{#436851}

Patch Set 1 #

Patch Set 2 : Fix chromeos test. #

Patch Set 3 : Fix logic. #

Patch Set 4 : Fix test. #

Patch Set 5 : Nit. #

Total comments: 5

Patch Set 6 : Use observers. #

Total comments: 6

Patch Set 7 : Address comments #

Total comments: 7

Patch Set 8 : Nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -68 lines) Patch
M chrome/browser/resources/settings/about_page/about_page.html View 1 2 3 2 chunks +7 lines, -19 lines 0 comments Download
M chrome/browser/resources/settings/about_page/about_page.js View 1 2 3 4 5 6 7 5 chunks +75 lines, -22 lines 0 comments Download
M chrome/test/data/webui/settings/about_page_tests.js View 1 2 3 9 chunks +32 lines, -27 lines 0 comments Download

Messages

Total messages: 56 (36 generated)
dpapad
The "check for updates" button regressed at https://codereview.chromium.org/2387053004, because the |hidden| binding was moved to ...
4 years ago (2016-12-01 01:17:03 UTC) #7
dpapad
On 2016/12/01 at 01:17:03, dpapad wrote: > The "check for updates" button regressed at https://codereview.chromium.org/2387053004, ...
4 years ago (2016-12-01 21:52:50 UTC) #10
dschuyler
I'm concerned about moving the hidden: in other cases similar to this change, there have ...
4 years ago (2016-12-02 21:26:43 UTC) #11
dpapad
On 2016/12/02 at 21:26:43, dschuyler wrote: > I'm concerned about moving the hidden: in other ...
4 years ago (2016-12-03 02:33:18 UTC) #15
dpapad
4 years ago (2016-12-05 23:58:25 UTC) #32
dpapad
https://codereview.chromium.org/2538283002/diff/120001/chrome/browser/resources/settings/about_page/about_page.js File chrome/browser/resources/settings/about_page/about_page.js (right): https://codereview.chromium.org/2538283002/diff/120001/chrome/browser/resources/settings/about_page/about_page.js#newcode52 chrome/browser/resources/settings/about_page/about_page.js:52: computed: (function() { This is unfortunately necessary to make ...
4 years ago (2016-12-05 23:59:47 UTC) #33
Dan Beam
https://codereview.chromium.org/2538283002/diff/120001/chrome/browser/resources/settings/about_page/about_page.js File chrome/browser/resources/settings/about_page/about_page.js (right): https://codereview.chromium.org/2538283002/diff/120001/chrome/browser/resources/settings/about_page/about_page.js#newcode52 chrome/browser/resources/settings/about_page/about_page.js:52: computed: (function() { On 2016/12/05 23:59:47, dpapad wrote: > ...
4 years ago (2016-12-06 00:16:51 UTC) #35
Dan Beam
https://codereview.chromium.org/2538283002/diff/120001/chrome/browser/resources/settings/about_page/about_page.js File chrome/browser/resources/settings/about_page/about_page.js (right): https://codereview.chromium.org/2538283002/diff/120001/chrome/browser/resources/settings/about_page/about_page.js#newcode52 chrome/browser/resources/settings/about_page/about_page.js:52: computed: (function() { On 2016/12/06 00:16:51, Dan Beam wrote: ...
4 years ago (2016-12-06 00:17:26 UTC) #36
dpapad
https://codereview.chromium.org/2538283002/diff/120001/chrome/browser/resources/settings/about_page/about_page.js File chrome/browser/resources/settings/about_page/about_page.js (right): https://codereview.chromium.org/2538283002/diff/120001/chrome/browser/resources/settings/about_page/about_page.js#newcode52 chrome/browser/resources/settings/about_page/about_page.js:52: computed: (function() { On 2016/12/06 at 00:17:26, Dan Beam ...
4 years ago (2016-12-06 00:23:41 UTC) #37
Dan Beam
https://codereview.chromium.org/2538283002/diff/120001/chrome/browser/resources/settings/about_page/about_page.js File chrome/browser/resources/settings/about_page/about_page.js (right): https://codereview.chromium.org/2538283002/diff/120001/chrome/browser/resources/settings/about_page/about_page.js#newcode52 chrome/browser/resources/settings/about_page/about_page.js:52: computed: (function() { On 2016/12/06 00:23:41, dpapad wrote: > ...
4 years ago (2016-12-06 00:29:44 UTC) #38
dpapad
> then make them observers instead of computed properties Done.
4 years ago (2016-12-06 01:56:59 UTC) #39
Dan Beam
https://codereview.chromium.org/2538283002/diff/140001/chrome/browser/resources/settings/about_page/about_page.js File chrome/browser/resources/settings/about_page/about_page.js (right): https://codereview.chromium.org/2538283002/diff/140001/chrome/browser/resources/settings/about_page/about_page.js#newcode98 chrome/browser/resources/settings/about_page/about_page.js:98: </if> can put each observer into a single if ...
4 years ago (2016-12-06 02:03:18 UTC) #40
dpapad
https://codereview.chromium.org/2538283002/diff/140001/chrome/browser/resources/settings/about_page/about_page.js File chrome/browser/resources/settings/about_page/about_page.js (right): https://codereview.chromium.org/2538283002/diff/140001/chrome/browser/resources/settings/about_page/about_page.js#newcode98 chrome/browser/resources/settings/about_page/about_page.js:98: </if> On 2016/12/06 at 02:03:18, Dan Beam wrote: > ...
4 years ago (2016-12-06 17:00:40 UTC) #43
Dan Beam
lgtm w/nits https://codereview.chromium.org/2538283002/diff/160001/chrome/browser/resources/settings/about_page/about_page.html File chrome/browser/resources/settings/about_page/about_page.html (right): https://codereview.chromium.org/2538283002/diff/160001/chrome/browser/resources/settings/about_page/about_page.html#newcode119 chrome/browser/resources/settings/about_page/about_page.html:119: hidden="[[!showRelaunchAndPowerwash_]]" it's kind of confusing because there's ...
4 years ago (2016-12-06 19:10:20 UTC) #46
dschuyler
LGTM https://codereview.chromium.org/2538283002/diff/160001/chrome/browser/resources/settings/about_page/about_page.js File chrome/browser/resources/settings/about_page/about_page.js (right): https://codereview.chromium.org/2538283002/diff/160001/chrome/browser/resources/settings/about_page/about_page.js#newcode74 chrome/browser/resources/settings/about_page/about_page.js:74: observers: [ Maybe a comment about why this ...
4 years ago (2016-12-06 19:41:21 UTC) #47
dpapad
https://codereview.chromium.org/2538283002/diff/160001/chrome/browser/resources/settings/about_page/about_page.html File chrome/browser/resources/settings/about_page/about_page.html (right): https://codereview.chromium.org/2538283002/diff/160001/chrome/browser/resources/settings/about_page/about_page.html#newcode119 chrome/browser/resources/settings/about_page/about_page.html:119: hidden="[[!showRelaunchAndPowerwash_]]" On 2016/12/06 at 19:10:20, Dan Beam wrote: > ...
4 years ago (2016-12-06 21:54:00 UTC) #48
Dan Beam
still lgtm
4 years ago (2016-12-07 00:42:42 UTC) #49
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/2538283002/180001
4 years ago (2016-12-07 01:16:17 UTC) #52
commit-bot: I haz the power
Committed patchset #8 (id:180001)
4 years ago (2016-12-07 03:39:36 UTC) #54
commit-bot: I haz the power
4 years ago (2016-12-07 03:41:42 UTC) #56
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/d47dc0a551b0fedc4cd58db1498426405dd2d044
Cr-Commit-Position: refs/heads/master@{#436851}

Powered by Google App Engine
This is Rietveld 408576698