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

Issue 2731473002: MD Bookmarks: Implement basis for new data-binding system (Closed)

Created:
3 years, 9 months ago by tsergeant
Modified:
3 years, 9 months ago
Reviewers:
calamity, michaelpg
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, michaelpg+watch-md-ui_chromium.org, vitalyp+closure_chromium.org, jlklein+watch-closure_chromium.org, arv+watch_chromium.org, dbeam+watch-closure_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Bookmarks: Implement basis for new data-binding system This CL adds two new classes to MD Bookmarks: - bookmarks.Store, a globally readable datastore which can only be modified through predefined actions. - bookmarks.StoreClient, a Polymer behavior for binding front-end Polymer elements to the global Store. These two classes form the basis for a new one-way dataflow system which we are building for MD Bookmarks. They are currently unused, but follow-up CLs will build up the remainder of the functionality (see bug for details). BUG=697706 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2731473002 Cr-Commit-Position: refs/heads/master@{#455373} Committed: https://chromium.googlesource.com/chromium/src/+/0d9346b1e64f41e97cd44a291ae43343bc0edcc7

Patch Set 1 #

Patch Set 2 : #

Total comments: 28

Patch Set 3 : michaelpg@ review comments #

Patch Set 4 : Add some !s I missed #

Total comments: 7

Patch Set 5 : calamity@ review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+391 lines, -6 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
A chrome/browser/resources/md_bookmarks/bookmarks_store.js View 1 2 3 4 1 chunk +82 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/compiled_resources2.gyp View 1 4 chunks +35 lines, -4 lines 0 comments Download
A chrome/browser/resources/md_bookmarks/reducers.html View 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/resources/md_bookmarks/reducers.js View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/store.html View 1 chunk +8 lines, -2 lines 0 comments Download
A chrome/browser/resources/md_bookmarks/store_client.html View 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/browser/resources/md_bookmarks/store_client.js View 1 2 3 4 1 chunk +91 lines, -0 lines 0 comments Download
A chrome/browser/resources/md_bookmarks/types.js View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.cc View 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/test/data/webui/md_bookmarks/md_bookmarks_browsertest.js View 1 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/test/data/webui/md_bookmarks/store_client_test.js View 1 2 3 4 1 chunk +94 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 33 (19 generated)
tsergeant
3 years, 9 months ago (2017-03-02 06:02:00 UTC) #5
michaelpg
Very cool! Hope you don't mind some drive-by comments. https://codereview.chromium.org/2731473002/diff/20001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/2731473002/diff/20001/chrome/browser/browser_resources.grd#newcode257 chrome/browser/browser_resources.grd:257: ...
3 years, 9 months ago (2017-03-02 09:30:36 UTC) #10
tsergeant
Thanks for reviewing! It's handy to have an extra set of eyes on this. https://codereview.chromium.org/2731473002/diff/20001/chrome/browser/browser_resources.grd ...
3 years, 9 months ago (2017-03-02 23:20:35 UTC) #11
calamity
https://codereview.chromium.org/2731473002/diff/20001/chrome/browser/resources/md_bookmarks/bookmarks_store.js File chrome/browser/resources/md_bookmarks/bookmarks_store.js (right): https://codereview.chromium.org/2731473002/diff/20001/chrome/browser/resources/md_bookmarks/bookmarks_store.js#newcode2 chrome/browser/resources/md_bookmarks/bookmarks_store.js:2: // Use of this source code is governed by ...
3 years, 9 months ago (2017-03-03 02:29:03 UTC) #12
tsergeant
https://codereview.chromium.org/2731473002/diff/20001/chrome/browser/resources/md_bookmarks/bookmarks_store.js File chrome/browser/resources/md_bookmarks/bookmarks_store.js (right): https://codereview.chromium.org/2731473002/diff/20001/chrome/browser/resources/md_bookmarks/bookmarks_store.js#newcode2 chrome/browser/resources/md_bookmarks/bookmarks_store.js:2: // Use of this source code is governed by ...
3 years, 9 months ago (2017-03-03 05:08:00 UTC) #13
calamity
lgtm https://codereview.chromium.org/2731473002/diff/60001/chrome/browser/resources/md_bookmarks/store_client.js File chrome/browser/resources/md_bookmarks/store_client.js (right): https://codereview.chromium.org/2731473002/diff/60001/chrome/browser/resources/md_bookmarks/store_client.js#newcode62 chrome/browser/resources/md_bookmarks/store_client.js:62: return; On 2017/03/03 05:08:00, tsergeant wrote: > On ...
3 years, 9 months ago (2017-03-03 05:46:09 UTC) #16
michaelpg
Since I've chimed in, LGTM too. I like the changes made to StoreClient. Do you ...
3 years, 9 months ago (2017-03-03 22:04:57 UTC) #19
tsergeant
On 2017/03/03 22:04:57, michaelpg wrote: > Since I've chimed in, LGTM too. I like the ...
3 years, 9 months ago (2017-03-06 23:43:18 UTC) #20
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/2731473002/80001
3 years, 9 months ago (2017-03-06 23:44:30 UTC) #22
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/395260)
3 years, 9 months ago (2017-03-07 02:37:11 UTC) #24
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/2731473002/80001
3 years, 9 months ago (2017-03-07 22:14:42 UTC) #26
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/396441)
3 years, 9 months ago (2017-03-08 01:45:48 UTC) #28
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/2731473002/80001
3 years, 9 months ago (2017-03-08 02:00:59 UTC) #30
commit-bot: I haz the power
3 years, 9 months ago (2017-03-08 03:30:03 UTC) #33
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/0d9346b1e64f41e97cd44a291ae4...

Powered by Google App Engine
This is Rietveld 408576698