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

Issue 1880783002: MD History: Use computed functions for card borders and time gaps (Closed)

Created:
4 years, 8 months ago by tsergeant
Modified:
4 years, 8 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, Patrick Dubroy, michaelpg+watch-md-ui_chromium.org, dbeam+watch-history_chromium.org, pam+watch_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

MD History: Use computed functions for card borders and time gaps This replaces values which were updated manually any time the history data changed with values which are automatically computed by Polymer. This simplifies the code and reduces the chance of errors. Due to the limitations of computed functions in Polymer, these functions have much wider dependencies than necessary, however, this does not appear to have a noticable impact on performance. BUG=425625 Committed: https://crrev.com/0e7617f648602b15e8a2faf2a0c3118eee9d5f4e Cr-Commit-Position: refs/heads/master@{#386883}

Patch Set 1 #

Patch Set 2 : Update comment #

Total comments: 10

Patch Set 3 : Review comments #

Total comments: 6

Patch Set 4 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -100 lines) Patch
M chrome/browser/resources/md_history/history_item.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/md_history/history_item.js View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_history/history_list.html View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/md_history/history_list.js View 1 2 3 4 chunks +40 lines, -53 lines 0 comments Download
M chrome/test/data/webui/md_history/history_item_test.js View 3 chunks +13 lines, -15 lines 0 comments Download
M chrome/test/data/webui/md_history/history_list_test.js View 4 chunks +39 lines, -29 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
tsergeant
dbeam@, please take a look!
4 years, 8 months ago (2016-04-11 23:23:41 UTC) #3
Dan Beam
https://codereview.chromium.org/1880783002/diff/20001/chrome/browser/resources/md_history/history_list.js File chrome/browser/resources/md_history/history_list.js (right): https://codereview.chromium.org/1880783002/diff/20001/chrome/browser/resources/md_history/history_list.js#newcode159 chrome/browser/resources/md_history/history_list.js:159: var spliceinfo = []; nit: splices https://codereview.chromium.org/1880783002/diff/20001/chrome/browser/resources/md_history/history_list.js#newcode179 chrome/browser/resources/md_history/history_list.js:179: this.notifySplices('historyData', ...
4 years, 8 months ago (2016-04-12 01:28:16 UTC) #4
tsergeant
https://codereview.chromium.org/1880783002/diff/20001/chrome/browser/resources/md_history/history_list.js File chrome/browser/resources/md_history/history_list.js (right): https://codereview.chromium.org/1880783002/diff/20001/chrome/browser/resources/md_history/history_list.js#newcode159 chrome/browser/resources/md_history/history_list.js:159: var spliceinfo = []; On 2016/04/12 01:28:16, Dan Beam ...
4 years, 8 months ago (2016-04-12 05:40:27 UTC) #5
Dan Beam
lgtm https://codereview.chromium.org/1880783002/diff/40001/chrome/browser/resources/md_history/history_list.js File chrome/browser/resources/md_history/history_list.js (left): https://codereview.chromium.org/1880783002/diff/40001/chrome/browser/resources/md_history/history_list.js#oldcode207 chrome/browser/resources/md_history/history_list.js:207: // Removes the selected item from historyData. mayyyyyyyyyybe ...
4 years, 8 months ago (2016-04-12 19:08:29 UTC) #7
tsergeant
https://codereview.chromium.org/1880783002/diff/40001/chrome/browser/resources/md_history/history_list.js File chrome/browser/resources/md_history/history_list.js (left): https://codereview.chromium.org/1880783002/diff/40001/chrome/browser/resources/md_history/history_list.js#oldcode207 chrome/browser/resources/md_history/history_list.js:207: // Removes the selected item from historyData. On 2016/04/12 ...
4 years, 8 months ago (2016-04-12 23:44:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1880783002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1880783002/60001
4 years, 8 months ago (2016-04-12 23:44:37 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-13 01:17:52 UTC) #13
commit-bot: I haz the power
4 years, 8 months ago (2016-04-13 01:19:18 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0e7617f648602b15e8a2faf2a0c3118eee9d5f4e
Cr-Commit-Position: refs/heads/master@{#386883}

Powered by Google App Engine
This is Rietveld 408576698