|
|
Chromium Code Reviews|
Created:
3 years, 9 months ago by tommycli Modified:
3 years, 9 months ago Reviewers:
dschuyler CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, arv+watch_chromium.org Target Ref:
refs/heads/master Project:
chromium Visibility:
Public. |
DescriptionMD Settings: Allow deleting read-only content setting exceptions.
BUG=702857
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Review-Url: https://codereview.chromium.org/2769453002
Cr-Commit-Position: refs/heads/master@{#459196}
Committed: https://chromium.googlesource.com/chromium/src/+/23db0471ac32d68bb40a9cb53e14a55a371b7f4e
Patch Set 1 #
Total comments: 6
Patch Set 2 : fix stuff #
Total comments: 2
Patch Set 3 : refactor #Patch Set 4 : refactor some more #Patch Set 5 : Merge #
Messages
Total messages: 38 (23 generated)
Description was changed from ========== MD Settings: Allow deleting read-only content setting exceptions. BUG=702857 ========== to ========== MD Settings: Allow deleting read-only content setting exceptions. BUG=702857 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
The CQ bit was checked by tommycli@chromium.org to run a CQ dry run
tommycli@chromium.org changed reviewers: + dschuyler@chromium.org
dschuyler: PTAL, thanks
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2017/03/21 20:33:03, tommycli wrote: > dschuyler: PTAL, thanks dschuyler: ping, thanks!
https://codereview.chromium.org/2769453002/diff/1/chrome/browser/resources/se... File chrome/browser/resources/settings/site_settings/site_list.html (right): https://codereview.chromium.org/2769453002/diff/1/chrome/browser/resources/se... chrome/browser/resources/settings/site_settings/site_list.html:85: hidden="[[!readOnlyList]]" on-tap="onResetButtonTap_" What will happen if this is policy enforced? I looks like we might show the delete icon in that case and it seems like we should not. https://codereview.chromium.org/2769453002/diff/1/chrome/browser/resources/se... chrome/browser/resources/settings/site_settings/site_list.html:88: <paper-icon-button id="actionMenuButton" icon="cr:more-vert" FYI (doesn't necessarily require a change) I'm not saying that "dots" is a great id name, but let me point out this style guide entry: https://google.github.io/styleguide/htmlcssguide.html#ID_and_Class_Name_Style (I believe the issue here is size, since the label is not compiled away like it would be in C++ (which calls for more verbose names)). https://codereview.chromium.org/2769453002/diff/1/chrome/browser/resources/se... File chrome/browser/resources/settings/site_settings/site_list.js (right): https://codereview.chromium.org/2769453002/diff/1/chrome/browser/resources/se... chrome/browser/resources/settings/site_settings/site_list.js:500: this.onResetTap_(); It looks like only this.onActionMenuActivate_(settings.PermissionValues.DEFAULT); is necessary? I'm not clear on why we'd call this.closeActionMenu_(). I suppose it's probably harmless and would be fine if it were really hard to avoid that code path, but it looks easy to avoid that path (though maybe I'm missing something?).
thanks! I also used git cl format --js, so there could be some whitespace changes too. https://codereview.chromium.org/2769453002/diff/1/chrome/browser/resources/se... File chrome/browser/resources/settings/site_settings/site_list.html (right): https://codereview.chromium.org/2769453002/diff/1/chrome/browser/resources/se... chrome/browser/resources/settings/site_settings/site_list.html:85: hidden="[[!readOnlyList]]" on-tap="onResetButtonTap_" On 2017/03/22 18:33:08, dschuyler wrote: > What will happen if this is policy enforced? > I looks like we might show the delete icon in that case and it seems like we > should not. Done. https://codereview.chromium.org/2769453002/diff/1/chrome/browser/resources/se... chrome/browser/resources/settings/site_settings/site_list.html:88: <paper-icon-button id="actionMenuButton" icon="cr:more-vert" On 2017/03/22 18:33:08, dschuyler wrote: > FYI (doesn't necessarily require a change) > > I'm not saying that "dots" is a great id name, but let me point out this style > guide entry: > https://google.github.io/styleguide/htmlcssguide.html#ID_and_Class_Name_Style > (I believe the issue here is size, since the label is not compiled away like it > would be in C++ (which calls for more verbose names)). Acknowledged. https://codereview.chromium.org/2769453002/diff/1/chrome/browser/resources/se... File chrome/browser/resources/settings/site_settings/site_list.js (right): https://codereview.chromium.org/2769453002/diff/1/chrome/browser/resources/se... chrome/browser/resources/settings/site_settings/site_list.js:500: this.onResetTap_(); On 2017/03/22 18:33:08, dschuyler wrote: > It looks like only > this.onActionMenuActivate_(settings.PermissionValues.DEFAULT); > is necessary? > I'm not clear on why we'd call this.closeActionMenu_(). I suppose it's probably > harmless and would be fine if it were really hard to avoid that code path, but > it looks easy to avoid that path (though maybe I'm missing something?). Done.
The CQ bit was checked by tommycli@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2769453002/diff/20001/chrome/browser/resource... File chrome/browser/resources/settings/site_settings/site_list.js (right): https://codereview.chromium.org/2769453002/diff/20001/chrome/browser/resource... chrome/browser/resources/settings/site_settings/site_list.js:512: this.actionMenuSite_ = null; Hmm, it looks like onActionMenuActivate_ is an event handler because the name starts with "on", but it appears to only be used as a private function (and not as an event handler -- maybe the name should be changed). Your choice: Could you do me the favor of adding a // TODO(dschuyler): Change onActionMenuActivate_() to take a actionMenuSite_ so that it doesn't need to be set/reset like this. or Go ahead and change onActionMenuActivate_() to take a actionMenuSite_ so that it doesn't need to be set/reset like this.
lgtm
The CQ bit was checked by tommycli@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
thanks! https://codereview.chromium.org/2769453002/diff/20001/chrome/browser/resource... File chrome/browser/resources/settings/site_settings/site_list.js (right): https://codereview.chromium.org/2769453002/diff/20001/chrome/browser/resource... chrome/browser/resources/settings/site_settings/site_list.js:512: this.actionMenuSite_ = null; On 2017/03/22 21:19:19, dschuyler wrote: > Hmm, it looks like onActionMenuActivate_ is an event handler because the name > starts with "on", but it appears to only be used as a private function (and not > as an event handler -- maybe the name should be changed). > > Your choice: > > Could you do me the favor of adding a > // TODO(dschuyler): Change onActionMenuActivate_() to take a actionMenuSite_ so > that it doesn't need to be set/reset like this. > > or > > Go ahead and change onActionMenuActivate_() to take a actionMenuSite_ so that it > doesn't need to be set/reset like this. Done. Based on your feedback, I refactored it a bit to make it more obvious. Still room for more improvement, but this is a decent state I think.
The CQ bit was checked by tommycli@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
On 2017/03/22 21:51:29, tommycli wrote: > thanks! > > https://codereview.chromium.org/2769453002/diff/20001/chrome/browser/resource... > File chrome/browser/resources/settings/site_settings/site_list.js (right): > > https://codereview.chromium.org/2769453002/diff/20001/chrome/browser/resource... > chrome/browser/resources/settings/site_settings/site_list.js:512: > this.actionMenuSite_ = null; > On 2017/03/22 21:19:19, dschuyler wrote: > > Hmm, it looks like onActionMenuActivate_ is an event handler because the name > > starts with "on", but it appears to only be used as a private function (and > not > > as an event handler -- maybe the name should be changed). > > > > Your choice: > > > > Could you do me the favor of adding a > > // TODO(dschuyler): Change onActionMenuActivate_() to take a actionMenuSite_ > so > > that it doesn't need to be set/reset like this. > > > > or > > > > Go ahead and change onActionMenuActivate_() to take a actionMenuSite_ so that > it > > doesn't need to be set/reset like this. > > Done. Based on your feedback, I refactored it a bit to make it more obvious. > Still room for more improvement, but this is a decent state I think. Thanks! slgtm
On 2017/03/22 23:06:40, dschuyler wrote: > On 2017/03/22 21:51:29, tommycli wrote: > > thanks! > > > > > https://codereview.chromium.org/2769453002/diff/20001/chrome/browser/resource... > > File chrome/browser/resources/settings/site_settings/site_list.js (right): > > > > > https://codereview.chromium.org/2769453002/diff/20001/chrome/browser/resource... > > chrome/browser/resources/settings/site_settings/site_list.js:512: > > this.actionMenuSite_ = null; > > On 2017/03/22 21:19:19, dschuyler wrote: > > > Hmm, it looks like onActionMenuActivate_ is an event handler because the > name > > > starts with "on", but it appears to only be used as a private function (and > > not > > > as an event handler -- maybe the name should be changed). > > > > > > Your choice: > > > > > > Could you do me the favor of adding a > > > // TODO(dschuyler): Change onActionMenuActivate_() to take a actionMenuSite_ > > so > > > that it doesn't need to be set/reset like this. > > > > > > or > > > > > > Go ahead and change onActionMenuActivate_() to take a actionMenuSite_ so > that > > it > > > doesn't need to be set/reset like this. > > > > Done. Based on your feedback, I refactored it a bit to make it more obvious. > > Still room for more improvement, but this is a decent state I think. > > Thanks! slgtm Great, sending it in!
The CQ bit was checked by tommycli@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dschuyler@chromium.org Link to the patchset: https://codereview.chromium.org/2769453002/#ps60001 (title: "refactor some more")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by tommycli@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dschuyler@chromium.org Link to the patchset: https://codereview.chromium.org/2769453002/#ps80001 (title: "Merge")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/...)
The CQ bit was checked by tommycli@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 80001, "attempt_start_ts": 1490296378525060,
"parent_rev": "37a094089091a096d1a539867240a6b491d9f59f", "commit_rev":
"23db0471ac32d68bb40a9cb53e14a55a371b7f4e"}
Message was sent while issue was closed.
Description was changed from ========== MD Settings: Allow deleting read-only content setting exceptions. BUG=702857 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== MD Settings: Allow deleting read-only content setting exceptions. BUG=702857 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2769453002 Cr-Commit-Position: refs/heads/master@{#459196} Committed: https://chromium.googlesource.com/chromium/src/+/23db0471ac32d68bb40a9cb53e14... ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/23db0471ac32d68bb40a9cb53e14... |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
