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

Issue 10443119: Add presubmit check for unversioned PPB interface macros in C++ wrappers. (Closed)

Created:
8 years, 6 months ago by Wez
Modified:
8 years, 6 months ago
CC:
chromium-reviews, brettw, noelallen1
Visibility:
Public.

Description

Add presubmit check for unversioned PPB interface macros in C++ wrappers. BUG=107398 TEST=Presubmit fails if a C++ wrapper implementation is modified and it uses unversioned PPB interface macro, succeeds otherwise. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=140065

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase & address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -0 lines) Patch
M ppapi/PRESUBMIT.py View 1 2 chunks +34 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Wez
dmichael: PTAL - a rough check for use of unversioned PPB name macros based on ...
8 years, 6 months ago (2012-05-31 22:02:21 UTC) #1
dmichael (off chromium)
Thanks for doing this! A couple of r.e. nits, o/w lgtm http://codereview.chromium.org/10443119/diff/1/ppapi/PRESUBMIT.py File ppapi/PRESUBMIT.py (right): ...
8 years, 6 months ago (2012-06-01 14:28:34 UTC) #2
Wez
http://codereview.chromium.org/10443119/diff/1/ppapi/PRESUBMIT.py File ppapi/PRESUBMIT.py (right): http://codereview.chromium.org/10443119/diff/1/ppapi/PRESUBMIT.py#newcode95 ppapi/PRESUBMIT.py:95: RE_UNVERSIONED_PPB = re.compile(r'\WPPB_\w+_INTERFACE\W') On 2012/06/01 14:28:34, dmichael wrote: > ...
8 years, 6 months ago (2012-06-01 18:32:16 UTC) #3
dmichael (off chromium)
8 years, 6 months ago (2012-06-01 18:44:48 UTC) #4
On Fri, Jun 1, 2012 at 12:32 PM, <wez@chromium.org> wrote:

>
>
http://codereview.chromium.**org/10443119/diff/1/ppapi/**PRESUBMIT.py<http://...
> File ppapi/PRESUBMIT.py (right):
>
> http://codereview.chromium.**org/10443119/diff/1/ppapi/**
>
PRESUBMIT.py#newcode95<http://codereview.chromium.org/10443119/diff/1/ppapi/PRESUBMIT.py#newcode95>
> ppapi/PRESUBMIT.py:95: RE_UNVERSIONED_PPB =
> re.compile(r'\WPPB_\w+_**INTERFACE\W')
> On 2012/06/01 14:28:34, dmichael wrote:
>
>> I think technically "\b" would be more appropriate than "\W", though
>>
> it
>
>> shouldn't matter much in practice. You also probably want "[\w\d_]+"
>>
> in the
>
>> middle instead of "\w+".
>>
>
> Done re "\W" -> "\b".
>
> "\w" matches [a-zA-Z0-9_] according to the Python docs, so I think it's
> correct here.
>
d'oh. I was thinking it was [a-zA-Z]. Thanks :-) lgtm


>
>
http://codereview.chromium.**org/10443119/<http://codereview.chromium.org/104...
>

Powered by Google App Engine
This is Rietveld 408576698