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

Issue 10829197: Add a presubmit check for boolean policy polarity. (Closed)

Created:
8 years, 4 months ago by Mattias Nissler (ping if slow)
Modified:
8 years, 4 months ago
Reviewers:
Joao da Silva
CC:
chromium-reviews, binzhao
Visibility:
Public.

Description

Add a presubmit check for boolean policy polarity. The current situation of boolean policy switches either enabling or disabling something is pretty arbitrary (although tending to be the inverse of the browser default). It's much easier to reason about XYZEnabled-style settings, so we prefer those going forward. BUG=chromium:85687 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150333

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -1 line) Patch
M chrome/app/policy/syntax_check_policy_template_json.py View 1 2 chunks +32 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Mattias Nissler (ping if slow)
Please review.
8 years, 4 months ago (2012-08-06 20:34:41 UTC) #1
Joao da Silva
lgtm Quite a patch that was sent to the try bots :-) https://chromiumcodereview.appspot.com/10829197/diff/1/chrome/app/policy/syntax_check_policy_template_json.py File chrome/app/policy/syntax_check_policy_template_json.py ...
8 years, 4 months ago (2012-08-06 21:49:04 UTC) #2
Mattias Nissler (ping if slow)
Thanks for the review! https://chromiumcodereview.appspot.com/10829197/diff/1/chrome/app/policy/syntax_check_policy_template_json.py File chrome/app/policy/syntax_check_policy_template_json.py (right): https://chromiumcodereview.appspot.com/10829197/diff/1/chrome/app/policy/syntax_check_policy_template_json.py#newcode158 chrome/app/policy/syntax_check_policy_template_json.py:158: "disable" in policy.get('name').lower() and On ...
8 years, 4 months ago (2012-08-07 08:20:07 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/10829197/3002
8 years, 4 months ago (2012-08-07 10:34:06 UTC) #4
commit-bot: I haz the power
8 years, 4 months ago (2012-08-07 12:04:16 UTC) #5
Change committed as 150333

Powered by Google App Engine
This is Rietveld 408576698