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

Issue 1371073003: Display material design policies grouped by tags. (Closed)

Created:
5 years, 2 months ago by fhorschig
Modified:
4 years, 3 months ago
Reviewers:
stevenjb, esprehn, Dan Beam
CC:
arv+watch_chromium.org, chromium-reviews, michaelpg+watch-polymer_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Display material design policies grouped by tags. Tags of policies in chrome://md-policy let policies appear in a group with the tag's name. Policies without tags won't be displayed. Policies with multiple tags will appear in every group. BUG=134849

Patch Set 1 #

Patch Set 2 : Policies and groups are sent and displayed in a simple way. #

Patch Set 3 : Cleaning and Refactoring. #

Total comments: 8

Patch Set 4 : Extracting PolicyUi + Renaming. #

Total comments: 59

Patch Set 5 : Closure Annotations. #

Total comments: 6

Patch Set 6 : Moved component changes to different CL. #

Total comments: 2

Patch Set 7 : Typing properties. #

Total comments: 2

Patch Set 8 : Remove typing for string property. #

Total comments: 87

Patch Set 9 : Replaced loops with dom-repeat. #

Patch Set 10 : Changed readonly to private properties. #

Total comments: 34

Patch Set 11 : Tags as string array. Removed listOf. #

Total comments: 16

Patch Set 12 : Test corrections. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+531 lines, -4 lines) Patch
M build/ios/grit_whitelist.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/browser/resources/md_policy/compiled_resources.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +30 lines, -0 lines 0 comments Download
A + chrome/browser/resources/md_policy/md_policy.css View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/md_policy/md_policy.html View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -1 line 0 comments Download
A chrome/browser/resources/md_policy/policy_group.css View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/browser/resources/md_policy/policy_group.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/resources/md_policy/policy_group.js View 1 2 3 4 5 6 7 8 9 1 chunk +63 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_policy/policy_resources.grd View 1 2 3 4 5 6 7 8 9 10 1 chunk +24 lines, -1 line 0 comments Download
A chrome/browser/resources/md_policy/policy_ui.css View 1 2 3 4 5 6 7 8 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/browser/resources/md_policy/policy_ui.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/resources/md_policy/policy_ui.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +99 lines, -0 lines 0 comments Download
A chrome/browser/resources/md_policy/strings.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/test/data/webui/policy_ui_material.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +22 lines, -0 lines 2 comments Download
A chrome/test/data/webui/policy_ui_material.cc View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/test/data/webui/policy_ui_material.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +177 lines, -0 lines 0 comments Download
M third_party/closure_compiler/compiled_resources.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 64 (23 generated)
fhorschig
5 years, 2 months ago (2015-10-02 13:13:25 UTC) #9
Thiemo Nagel
Please mention that this is for chrome://md-policy in the CL description.
5 years, 2 months ago (2015-10-06 11:00:19 UTC) #10
Thiemo Nagel
I don't think I'm a good reviewer for this. I'd suggest to ask stevenjb@.
5 years, 2 months ago (2015-10-06 11:44:23 UTC) #11
fhorschig
Hi Steven, Could you please have a look at this CL (especially the polymer parts). ...
5 years, 2 months ago (2015-10-06 12:42:54 UTC) #13
stevenjb
Might I suggest separating out the addition of policy_resources.grd from the rest of the changes? ...
5 years, 2 months ago (2015-10-06 22:25:02 UTC) #14
stevenjb
I only did a partial review. In addition to the suggestions below, please add closure ...
5 years, 2 months ago (2015-10-06 22:42:03 UTC) #15
fhorschig
https://codereview.chromium.org/1371073003/diff/180001/chrome/browser/resources/md_policy/cr_policy_group.html File chrome/browser/resources/md_policy/cr_policy_group.html (right): https://codereview.chromium.org/1371073003/diff/180001/chrome/browser/resources/md_policy/cr_policy_group.html#newcode11 chrome/browser/resources/md_policy/cr_policy_group.html:11: <dom-module id="cr-policy-group"> On 2015/10/06 22:42:03, stevenjb wrote: > nit: ...
5 years, 2 months ago (2015-10-07 16:37:11 UTC) #16
stevenjb
https://codereview.chromium.org/1371073003/diff/200001/chrome/browser/resources/md_policy/md_policy.css File chrome/browser/resources/md_policy/md_policy.css (right): https://codereview.chromium.org/1371073003/diff/200001/chrome/browser/resources/md_policy/md_policy.css#newcode6 chrome/browser/resources/md_policy/md_policy.css:6: background: #DDD; Prefer RGB (See https://www.chromium.org/developers/web-development-style-guide#Color) https://codereview.chromium.org/1371073003/diff/200001/chrome/browser/resources/md_policy/md_policy.html File chrome/browser/resources/md_policy/md_policy.html ...
5 years, 2 months ago (2015-10-07 17:09:33 UTC) #17
fhorschig
https://codereview.chromium.org/1371073003/diff/200001/chrome/browser/resources/md_policy/md_policy.css File chrome/browser/resources/md_policy/md_policy.css (right): https://codereview.chromium.org/1371073003/diff/200001/chrome/browser/resources/md_policy/md_policy.css#newcode6 chrome/browser/resources/md_policy/md_policy.css:6: background: #DDD; On 2015/10/07 17:09:32, stevenjb wrote: > Prefer ...
5 years, 2 months ago (2015-10-08 09:35:47 UTC) #19
stevenjb
Please make sure that someone more familiar with the policy code takes a look, but ...
5 years, 2 months ago (2015-10-08 17:12:39 UTC) #20
fhorschig
Hi Dan, would you mind to have a look to this CL? Cheers, Friedrich https://codereview.chromium.org/1371073003/diff/240001/chrome/browser/resources/md_policy/policy_group.js ...
5 years, 2 months ago (2015-10-09 11:57:32 UTC) #28
stevenjb
https://codereview.chromium.org/1371073003/diff/380001/chrome/browser/resources/md_policy/policy_ui.js File chrome/browser/resources/md_policy/policy_ui.js (right): https://codereview.chromium.org/1371073003/diff/380001/chrome/browser/resources/md_policy/policy_ui.js#newcode28 chrome/browser/resources/md_policy/policy_ui.js:28: /** Object containing title and text of the introduction ...
5 years, 2 months ago (2015-10-09 16:10:14 UTC) #29
fhorschig
https://codereview.chromium.org/1371073003/diff/380001/chrome/browser/resources/md_policy/policy_ui.js File chrome/browser/resources/md_policy/policy_ui.js (right): https://codereview.chromium.org/1371073003/diff/380001/chrome/browser/resources/md_policy/policy_ui.js#newcode28 chrome/browser/resources/md_policy/policy_ui.js:28: /** Object containing title and text of the introduction ...
5 years, 2 months ago (2015-10-09 16:30:39 UTC) #30
stevenjb
https://codereview.chromium.org/1371073003/diff/400001/chrome/browser/resources/md_policy/policy_group.js File chrome/browser/resources/md_policy/policy_group.js (right): https://codereview.chromium.org/1371073003/diff/400001/chrome/browser/resources/md_policy/policy_group.js#newcode31 chrome/browser/resources/md_policy/policy_group.js:31: * @type {string} For "simple" types like String, Closure ...
5 years, 2 months ago (2015-10-09 16:39:27 UTC) #31
fhorschig
https://codereview.chromium.org/1371073003/diff/400001/chrome/browser/resources/md_policy/policy_group.js File chrome/browser/resources/md_policy/policy_group.js (right): https://codereview.chromium.org/1371073003/diff/400001/chrome/browser/resources/md_policy/policy_group.js#newcode31 chrome/browser/resources/md_policy/policy_group.js:31: * @type {string} On 2015/10/09 16:39:27, stevenjb wrote: > ...
5 years, 2 months ago (2015-10-09 16:42:37 UTC) #32
Dan Beam
https://codereview.chromium.org/1371073003/diff/420001/chrome/browser/resources/md_policy/md_policy.html File chrome/browser/resources/md_policy/md_policy.html (right): https://codereview.chromium.org/1371073003/diff/420001/chrome/browser/resources/md_policy/md_policy.html#newcode12 chrome/browser/resources/md_policy/md_policy.html:12: <script src="chrome://md-policy/strings.js"></script> if we're not using this on iOS, ...
5 years, 2 months ago (2015-10-10 01:04:19 UTC) #33
stevenjb
https://codereview.chromium.org/1371073003/diff/420001/chrome/browser/resources/md_policy/policy_group.js File chrome/browser/resources/md_policy/policy_group.js (right): https://codereview.chromium.org/1371073003/diff/420001/chrome/browser/resources/md_policy/policy_group.js#newcode51 chrome/browser/resources/md_policy/policy_group.js:51: translate: function(key) { On 2015/10/10 01:04:18, Dan Beam wrote: ...
5 years, 2 months ago (2015-10-12 16:55:37 UTC) #35
stevenjb
https://codereview.chromium.org/1371073003/diff/420001/chrome/browser/resources/md_policy/policy_group.js File chrome/browser/resources/md_policy/policy_group.js (right): https://codereview.chromium.org/1371073003/diff/420001/chrome/browser/resources/md_policy/policy_group.js#newcode43 chrome/browser/resources/md_policy/policy_group.js:43: this._setRiskTag(riskTag); On 2015/10/10 01:04:18, Dan Beam wrote: > is ...
5 years, 2 months ago (2015-10-12 17:02:46 UTC) #36
Dan Beam
https://codereview.chromium.org/1371073003/diff/420001/chrome/browser/resources/md_policy/policy_group.js File chrome/browser/resources/md_policy/policy_group.js (right): https://codereview.chromium.org/1371073003/diff/420001/chrome/browser/resources/md_policy/policy_group.js#newcode51 chrome/browser/resources/md_policy/policy_group.js:51: translate: function(key) { On 2015/10/12 16:55:37, stevenjb wrote: > ...
5 years, 2 months ago (2015-10-12 18:14:21 UTC) #37
fhorschig
A way to use normal assignments (and have notifications working) would be to make my ...
5 years, 2 months ago (2015-10-13 16:29:12 UTC) #38
Dan Beam
https://codereview.chromium.org/1371073003/diff/420001/chrome/browser/resources/md_policy/policy_ui.js File chrome/browser/resources/md_policy/policy_ui.js (right): https://codereview.chromium.org/1371073003/diff/420001/chrome/browser/resources/md_policy/policy_ui.js#newcode43 chrome/browser/resources/md_policy/policy_ui.js:43: this._setIntroduction({ On 2015/10/13 16:29:11, fhorschig wrote: > On 2015/10/12 ...
5 years, 2 months ago (2015-10-13 16:56:10 UTC) #39
stevenjb
https://codereview.chromium.org/1371073003/diff/420001/chrome/browser/resources/md_policy/policy_ui.js File chrome/browser/resources/md_policy/policy_ui.js (right): https://codereview.chromium.org/1371073003/diff/420001/chrome/browser/resources/md_policy/policy_ui.js#newcode43 chrome/browser/resources/md_policy/policy_ui.js:43: this._setIntroduction({ On 2015/10/13 16:56:09, Dan Beam wrote: > On ...
5 years, 2 months ago (2015-10-13 17:30:15 UTC) #40
stevenjb
https://codereview.chromium.org/1371073003/diff/420001/chrome/browser/resources/md_policy/policy_ui.js File chrome/browser/resources/md_policy/policy_ui.js (right): https://codereview.chromium.org/1371073003/diff/420001/chrome/browser/resources/md_policy/policy_ui.js#newcode43 chrome/browser/resources/md_policy/policy_ui.js:43: this._setIntroduction({ On 2015/10/13 17:30:15, stevenjb wrote: > On 2015/10/13 ...
5 years, 2 months ago (2015-10-13 18:36:50 UTC) #41
fhorschig
https://codereview.chromium.org/1371073003/diff/420001/chrome/browser/resources/md_policy/policy_ui.js File chrome/browser/resources/md_policy/policy_ui.js (right): https://codereview.chromium.org/1371073003/diff/420001/chrome/browser/resources/md_policy/policy_ui.js#newcode43 chrome/browser/resources/md_policy/policy_ui.js:43: this._setIntroduction({ On 2015/10/13 18:36:50, stevenjb wrote: > On 2015/10/13 ...
5 years, 2 months ago (2015-10-14 18:23:42 UTC) #42
Dan Beam
https://codereview.chromium.org/1371073003/diff/460001/chrome/browser/resources/md_policy/md_policy.html File chrome/browser/resources/md_policy/md_policy.html (right): https://codereview.chromium.org/1371073003/diff/460001/chrome/browser/resources/md_policy/md_policy.html#newcode11 chrome/browser/resources/md_policy/md_policy.html:11: <policy-ui></policy-ui> what's the point of this element/file? you should ...
5 years, 2 months ago (2015-10-14 21:05:06 UTC) #43
fhorschig
https://codereview.chromium.org/1371073003/diff/460001/chrome/browser/resources/md_policy/md_policy.html File chrome/browser/resources/md_policy/md_policy.html (right): https://codereview.chromium.org/1371073003/diff/460001/chrome/browser/resources/md_policy/md_policy.html#newcode11 chrome/browser/resources/md_policy/md_policy.html:11: <policy-ui></policy-ui> On 2015/10/14 21:05:06, Dan Beam wrote: > what's ...
5 years, 2 months ago (2015-10-14 21:30:29 UTC) #44
esprehn
https://codereview.chromium.org/1371073003/diff/460001/chrome/test/data/webui/policy_ui_material.js File chrome/test/data/webui/policy_ui_material.js (right): https://codereview.chromium.org/1371073003/diff/460001/chrome/test/data/webui/policy_ui_material.js#newcode99 chrome/test/data/webui/policy_ui_material.js:99: if (opt_root.matches && opt_root.matches(selector)) This is going to be ...
5 years, 2 months ago (2015-10-14 21:35:34 UTC) #46
Dan Beam
https://codereview.chromium.org/1371073003/diff/460001/chrome/browser/resources/md_policy/policy_ui.html File chrome/browser/resources/md_policy/policy_ui.html (right): https://codereview.chromium.org/1371073003/diff/460001/chrome/browser/resources/md_policy/policy_ui.html#newcode19 chrome/browser/resources/md_policy/policy_ui.html:19: <policy-group risk-tag="[[tag.name]]"></policy-group> why can't this just be [[tag]] and ...
5 years, 2 months ago (2015-10-14 21:44:00 UTC) #47
fhorschig
https://codereview.chromium.org/1371073003/diff/460001/chrome/browser/resources/md_policy/policy_ui.html File chrome/browser/resources/md_policy/policy_ui.html (right): https://codereview.chromium.org/1371073003/diff/460001/chrome/browser/resources/md_policy/policy_ui.html#newcode19 chrome/browser/resources/md_policy/policy_ui.html:19: <policy-group risk-tag="[[tag.name]]"></policy-group> On 2015/10/14 21:44:00, Dan Beam wrote: > ...
5 years, 2 months ago (2015-10-15 17:38:30 UTC) #49
Thiemo Nagel
Friendly ping. What is this CL blocked on?
5 years, 1 month ago (2015-11-03 17:40:55 UTC) #51
Dan Beam
https://codereview.chromium.org/1371073003/diff/520001/chrome/browser/resources/md_policy/md_policy.html File chrome/browser/resources/md_policy/md_policy.html (right): https://codereview.chromium.org/1371073003/diff/520001/chrome/browser/resources/md_policy/md_policy.html#newcode11 chrome/browser/resources/md_policy/md_policy.html:11: <policy-ui></policy-ui> can you just inline <policy-ui>'s contents here? you're ...
5 years, 1 month ago (2015-11-03 17:52:55 UTC) #52
Thiemo Nagel
Friedrich, I have the impression that this CL could use a rebase. With today's ToT ...
5 years, 1 month ago (2015-11-03 17:58:39 UTC) #53
Dan Beam
https://codereview.chromium.org/1371073003/diff/520001/chrome/browser/resources/md_policy/policy_group.html File chrome/browser/resources/md_policy/policy_group.html (right): https://codereview.chromium.org/1371073003/diff/520001/chrome/browser/resources/md_policy/policy_group.html#newcode17 chrome/browser/resources/md_policy/policy_group.html:17: <template is="dom-repeat" items="[[policies_]]" as="policy"> should this be an iron-list? ...
5 years, 1 month ago (2015-11-03 18:22:32 UTC) #54
fhorschig
Sorry it took me forever to go over the comments [1]. I will need another ...
5 years ago (2015-11-22 17:55:27 UTC) #57
Dan Beam
lgtm https://codereview.chromium.org/1371073003/diff/580001/chrome/test/data/webui/policy_ui_material.h File chrome/test/data/webui/policy_ui_material.h (right): https://codereview.chromium.org/1371073003/diff/580001/chrome/test/data/webui/policy_ui_material.h#newcode1 chrome/test/data/webui/policy_ui_material.h:1: // Copyright (c) 2015 The Chromium Authors. All ...
5 years ago (2015-12-01 04:51:55 UTC) #58
Dan Beam
what's the status of this CL? can we close it?
4 years, 4 months ago (2016-08-12 04:38:47 UTC) #59
Thiemo Nagel
On 2016/08/12 04:38:47, Dan Beam wrote: > what's the status of this CL? can we ...
4 years, 4 months ago (2016-08-12 13:43:39 UTC) #60
Dan Beam
On 2016/08/12 13:43:39, Thiemo Nagel wrote: > On 2016/08/12 04:38:47, Dan Beam wrote: > > ...
4 years, 4 months ago (2016-08-12 16:41:50 UTC) #61
esprehn
On 2016/08/12 at 16:41:50, dbeam wrote: > On 2016/08/12 13:43:39, Thiemo Nagel wrote: > > ...
4 years, 3 months ago (2016-08-30 23:36:54 UTC) #62
esprehn
On 2016/08/30 at 23:36:54, esprehn wrote: > On 2016/08/12 at 16:41:50, dbeam wrote: > > ...
4 years, 3 months ago (2016-08-30 23:37:17 UTC) #63
esprehn
4 years, 3 months ago (2016-09-08 22:14:41 UTC) #64
Message was sent while issue was closed.
I'm going to close this, feel free to reopen if you want to land it. :)

Powered by Google App Engine
This is Rietveld 408576698