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

Issue 2449853006: MD Downloads: handle date hiding/showing more sanely (Closed)

Created:
4 years, 1 month ago by Dan Beam
Modified:
4 years, 1 month ago
Reviewers:
dpapad
CC:
arv+watch_chromium.org, asanka, chromium-reviews, dbeam+watch-history_chromium.org, dbeam+watch-downloads_chromium.org, Patrick Dubroy, michaelpg+watch-md-ui_chromium.org, pam+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Downloads: handle date hiding/showing more sanely Previously, items where created by accessing the physical DOM. As in: someElementItem.hideDate = true/false. But then hideDate was moved to an item's data. I accidentally left a property binding around. Additionally, changing .data.hideDate doesn't actually trigger observers in iron-list to fire as it's changing a sub-property of a complex object. So instead, use the .set() API to ensure iron-list is notified so it can update the template instance's data for the physical itmes it owns. It may be possible to test this, but: * we've had issues in the past testing multiple items in an iron-list (and this test would require at least 2 items to be useful) * you're not really supposed to use or depend on the physical items of an iron-list, which is actually what we'd need to check R=dpapad@chromium.org BUG=656580 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/9ce83c55f556e739b053e6be5f0034870be47c37 Cr-Commit-Position: refs/heads/master@{#427883}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -9 lines) Patch
M chrome/browser/resources/md_downloads/crisper.js View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/md_downloads/manager.html View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/resources/md_downloads/manager.js View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/md_downloads/vulcanized.html View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/resources/md_history/app.crisper.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (9 generated)
Dan Beam
4 years, 1 month ago (2016-10-26 19:24:30 UTC) #2
dpapad
lgtm
4 years, 1 month ago (2016-10-26 21:50:11 UTC) #8
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/2449853006/1
4 years, 1 month ago (2016-10-26 22:15:47 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-10-26 23:55:47 UTC) #12
commit-bot: I haz the power
4 years, 1 month ago (2016-10-26 23:58:22 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/9ce83c55f556e739b053e6be5f0034870be47c37
Cr-Commit-Position: refs/heads/master@{#427883}

Powered by Google App Engine
This is Rietveld 408576698