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

Issue 2852023002: Add PRESUMIT for accessibility_mode_enums values (Closed)

Created:
3 years, 7 months ago by dougt
Modified:
3 years, 6 months ago
Reviewers:
dmazzoni, jam, aboxhall, brettw
CC:
chromium-reviews, aboxhall+watch_chromium.org, nektar+watch_chromium.org, jam, yuzo+watch_chromium.org, dougt+watch_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, je_julie
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add PRESUMIT for accessibility_mode_enums values Values in content/common/accessibility_mode_enums.h need to be kept in sync with content/browser/resources/accessibility/accessibility.js. It's easy to forget and we should have a PRESUBMIT guarding against mistakes. BUG=692087 Review-Url: https://codereview.chromium.org/2852023002 Cr-Commit-Position: refs/heads/master@{#482174} Committed: https://chromium.googlesource.com/chromium/src/+/96252c9df30022a3c734bc03dea7b1c73e5de23c

Patch Set 1 #

Patch Set 2 : ws #

Total comments: 6

Patch Set 3 : Address brettw's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -5 lines) Patch
M content/browser/resources/accessibility/accessibility.js View 1 chunk +4 lines, -5 lines 0 comments Download
A content/common/PRESUBMIT.py View 1 2 1 chunk +89 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (26 generated)
dougt
Hi Alice, PTAL at the changes to the AccessibilityMode. I removed kOff because it's not ...
3 years, 7 months ago (2017-05-01 04:55:23 UTC) #6
dougt
PTAL
3 years, 7 months ago (2017-05-02 15:29:50 UTC) #8
dmazzoni
Alice, did you want to take a look? Minor nit - the Python script has ...
3 years, 6 months ago (2017-05-30 15:03:02 UTC) #9
dmazzoni
lgtm modulo previous comment about indentation
3 years, 6 months ago (2017-06-06 04:46:52 UTC) #10
dougt
3 years, 6 months ago (2017-06-12 20:52:04 UTC) #14
dougt
brettw, ptal at the presubmit change. need your approval for content/common/*
3 years, 6 months ago (2017-06-13 02:43:35 UTC) #17
brettw
Can you ask a content owner instead? They will have more context.
3 years, 6 months ago (2017-06-19 23:42:33 UTC) #18
dougt
jam, ptal.
3 years, 6 months ago (2017-06-20 00:02:18 UTC) #20
brettw
lgtm https://codereview.chromium.org/2852023002/diff/20001/content/common/PRESUBMIT.py File content/common/PRESUBMIT.py (right): https://codereview.chromium.org/2852023002/diff/20001/content/common/PRESUBMIT.py#newcode12 content/common/PRESUBMIT.py:12: # Given a full path to c++ header, ...
3 years, 6 months ago (2017-06-20 16:48:01 UTC) #22
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/2852023002/80001
3 years, 6 months ago (2017-06-25 19:19:55 UTC) #34
commit-bot: I haz the power
Committed patchset #3 (id:80001) as https://chromium.googlesource.com/chromium/src/+/96252c9df30022a3c734bc03dea7b1c73e5de23c
3 years, 6 months ago (2017-06-25 19:29:14 UTC) #37
dougt
3 years, 6 months ago (2017-06-25 21:42:23 UTC) #38
Message was sent while issue was closed.
https://codereview.chromium.org/2852023002/diff/20001/content/common/PRESUBMI...
File content/common/PRESUBMIT.py (right):

https://codereview.chromium.org/2852023002/diff/20001/content/common/PRESUBMI...
content/common/PRESUBMIT.py:12: # Given a full path to c++ header, return an
array of the first
On 2017/06/20 16:48:00, brettw wrote:
> This seems to return many items, so I'm getting confused by the word "first"
in
> this comment.

In a c++ there may be multiple static constexpr defined.  I can adjust the
comment.

https://codereview.chromium.org/2852023002/diff/20001/content/common/PRESUBMI...
content/common/PRESUBMIT.py:24: continue
On 2017/06/20 16:48:01, brettw wrote:
> My Python is rusty, but is this continue statement doing anything? I thought
it
> just goes back to the top of the loop. Can we delete it?

Done.

https://codereview.chromium.org/2852023002/diff/20001/content/common/PRESUBMI...
content/common/PRESUBMIT.py:60: # Make sure that the modes defined in the C++
header match those deifned in
On 2017/06/20 16:48:00, brettw wrote:
> "deifned"

Done.

Powered by Google App Engine
This is Rietveld 408576698