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

Issue 1932413003: [MD History] Refactor history.html into a history-app element. (Closed)

Created:
4 years, 7 months ago by calamity
Modified:
4 years, 7 months ago
Reviewers:
tsergeant, Dan Beam
CC:
chromium-reviews, Patrick Dubroy, michaelpg+watch-md-ui_chromium.org, dbeam+watch-history_chromium.org, pam+watch_chromium.org, arv+watch_chromium.org, chrome-apps-syd-reviews_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] Refactor history.html into a history-app element. This CL refactors the top level structure of the MD History page so that a top level app element exists which can take advantage of Polymer's data binding. BUG= Committed: https://crrev.com/123c2cf29aa4890ce71e524b250ca21c7caff103 Cr-Commit-Position: refs/heads/master@{#391575}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : address_comments #

Patch Set 3 : rebase #

Total comments: 8

Patch Set 4 : fix_test #

Total comments: 2

Patch Set 5 : address comments #

Patch Set 6 : unfix test a bit #

Patch Set 7 : address nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -141 lines) Patch
M chrome/browser/browser_resources.grd View 1 1 chunk +3 lines, -2 lines 0 comments Download
A chrome/browser/resources/md_history/app.html View 1 2 3 1 chunk +59 lines, -0 lines 0 comments Download
A chrome/browser/resources/md_history/app.js View 1 1 chunk +113 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_history/compiled_resources2.gyp View 1 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_history/elements.html View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/resources/md_history/history.html View 1 2 4 chunks +7 lines, -29 lines 0 comments Download
M chrome/browser/resources/md_history/history.js View 1 2 3 4 5 6 4 chunks +11 lines, -80 lines 0 comments Download
M chrome/browser/resources/md_history/side_bar.html View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/md_history/side_bar.js View 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/md_history_ui.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/data/webui/md_history/history_item_test.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/webui/md_history/history_list_test.js View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/data/webui/md_history/history_overflow_menu_test.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/webui/md_history/history_supervised_user_test.js View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/test/data/webui/md_history/history_synced_tabs_test.js View 1 2 3 4 5 1 chunk +14 lines, -6 lines 0 comments Download
M chrome/test/data/webui/md_history/history_toolbar_test.js View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/data/webui/md_history/md_history_browsertest.js View 1 2 3 4 1 chunk +2 lines, -6 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 21 (7 generated)
calamity
Oracle is down so I can't download Java to run the closure compile so I'll ...
4 years, 7 months ago (2016-04-30 01:04:24 UTC) #3
tsergeant
You should also update suiteSetup in md_history_browsertest.js to reflect the new page structure. https://codereview.chromium.org/1932413003/diff/40001/chrome/browser/resources/md_history/app.js File ...
4 years, 7 months ago (2016-05-02 16:19:20 UTC) #5
calamity
Also did the suitesetup thing https://codereview.chromium.org/1932413003/diff/40001/chrome/browser/resources/md_history/app.js File chrome/browser/resources/md_history/app.js (right): https://codereview.chromium.org/1932413003/diff/40001/chrome/browser/resources/md_history/app.js#newcode16 chrome/browser/resources/md_history/app.js:16: // TODO(calamity): Replace these ...
4 years, 7 months ago (2016-05-02 21:31:12 UTC) #6
tsergeant
https://codereview.chromium.org/1932413003/diff/80001/chrome/browser/resources/md_history/history.js File chrome/browser/resources/md_history/history.js (right): https://codereview.chromium.org/1932413003/diff/80001/chrome/browser/resources/md_history/history.js#newcode66 chrome/browser/resources/md_history/history.js:66: appElem.setForeignSessions(sessionList, isTabSyncEnabled); Closure cast here https://codereview.chromium.org/1932413003/diff/80001/chrome/browser/resources/md_history/history.js#newcode76 chrome/browser/resources/md_history/history.js:76: appElem.deleteComplete(); Closure ...
4 years, 7 months ago (2016-05-03 00:05:10 UTC) #7
calamity
There's some weird junk happening with the tests... The synced tabs tests breaks when calling ...
4 years, 7 months ago (2016-05-03 23:07:19 UTC) #8
tsergeant
lgtm with a nit about closure. The workaround for the synced tabs test seems fine, ...
4 years, 7 months ago (2016-05-03 23:30:21 UTC) #9
tsergeant
Changes to the test look better, still lgtm
4 years, 7 months ago (2016-05-03 23:50:37 UTC) #10
calamity
+dbeam for browser_resources.grd OWNERS. https://codereview.chromium.org/1932413003/diff/100001/chrome/browser/resources/md_history/history.js File chrome/browser/resources/md_history/history.js (right): https://codereview.chromium.org/1932413003/diff/100001/chrome/browser/resources/md_history/history.js#newcode33 chrome/browser/resources/md_history/history.js:33: /** @type {HistoryAppElement} */(appElem).historyResult(info, results); ...
4 years, 7 months ago (2016-05-04 00:02:43 UTC) #12
Dan Beam
i love stamping things especially browser_ resources dot grd lgtm
4 years, 7 months ago (2016-05-04 00:10:57 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1932413003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1932413003/160001
4 years, 7 months ago (2016-05-04 17:12:45 UTC) #16
calamity
On 2016/05/04 00:10:57, Dan Beam wrote: > i love stamping things > especially browser_ > ...
4 years, 7 months ago (2016-05-04 17:13:25 UTC) #17
commit-bot: I haz the power
Committed patchset #7 (id:160001)
4 years, 7 months ago (2016-05-04 18:30:49 UTC) #18
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/123c2cf29aa4890ce71e524b250ca21c7caff103 Cr-Commit-Position: refs/heads/master@{#391575}
4 years, 7 months ago (2016-05-04 18:32:23 UTC) #20
Dan Beam
4 years, 7 months ago (2016-05-05 16:29:48 UTC) #21
Message was sent while issue was closed.
On 2016/05/04 17:13:25, calamity wrote:
> On 2016/05/04 00:10:57, Dan Beam wrote:
> > i love stamping things
> > especially browser_
> > resources dot grd
> > 
> > lgtm
> 
> I will grudgingly count the underscore as a syllable.

whoops

Powered by Google App Engine
This is Rietveld 408576698