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

Issue 867163003: ui: Add PRESUBMIT script to check the usage of scoped_ptr. (Closed)

Created:
5 years, 10 months ago by tfarina
Modified:
5 years, 10 months ago
CC:
chromium-reviews, danakj, tapted
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ui: Add PRESUBMIT script to check the usage of scoped_ptr. This script should check the usage of scoped_ptr in files changed in the change list when uploading to codereview.chromium.org. That way we should avoid future regressions. BUG=None TEST=git cl presubmit -uv R=sky@chromium.org Committed: https://crrev.com/a852d632b1169f5c49c88803d4690f663a67ea4e Cr-Commit-Position: refs/heads/master@{#314091}

Patch Set 1 #

Total comments: 4

Patch Set 2 : fixes #

Total comments: 4

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -0 lines) Patch
A ui/PRESUBMIT.py View 1 2 1 chunk +44 lines, -0 lines 2 comments Download

Messages

Total messages: 15 (3 generated)
tfarina
Continuation of https://codereview.chromium.org/855023003/
5 years, 10 months ago (2015-01-29 04:29:03 UTC) #1
sky
I'm not particularly familiar with presubmit checks. Can you add another reviewer that is? https://codereview.chromium.org/867163003/diff/1/ui/PRESUBMIT.py ...
5 years, 10 months ago (2015-01-29 14:28:20 UTC) #2
tfarina
Marc-Antoine, could you review this change? https://codereview.chromium.org/867163003/diff/1/ui/PRESUBMIT.py File ui/PRESUBMIT.py (right): https://codereview.chromium.org/867163003/diff/1/ui/PRESUBMIT.py#newcode1 ui/PRESUBMIT.py:1: # Copyright (c) ...
5 years, 10 months ago (2015-01-30 14:07:11 UTC) #4
Marc-Antoine Ruel (Google)
rubberstamp lgtm https://codereview.chromium.org/867163003/diff/20001/ui/PRESUBMIT.py File ui/PRESUBMIT.py (right): https://codereview.chromium.org/867163003/diff/20001/ui/PRESUBMIT.py#newcode12 ui/PRESUBMIT.py:12: r'.*\.(h|cc|mm)$', (cc|h|mm) https://codereview.chromium.org/867163003/diff/20001/ui/PRESUBMIT.py#newcode33 ui/PRESUBMIT.py:33: def CheckChangeOnUpload(input_api, output_api): ...
5 years, 10 months ago (2015-01-30 17:15:42 UTC) #6
sky
LGTM
5 years, 10 months ago (2015-01-30 19:09:52 UTC) #7
tfarina
https://codereview.chromium.org/867163003/diff/20001/ui/PRESUBMIT.py File ui/PRESUBMIT.py (right): https://codereview.chromium.org/867163003/diff/20001/ui/PRESUBMIT.py#newcode12 ui/PRESUBMIT.py:12: r'.*\.(h|cc|mm)$', On 2015/01/30 17:15:41, Marc-Antoine Ruel (Google) wrote: > ...
5 years, 10 months ago (2015-01-31 00:34:36 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/867163003/40001
5 years, 10 months ago (2015-02-01 10:16:03 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-01 17:38:53 UTC) #11
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/a852d632b1169f5c49c88803d4690f663a67ea4e Cr-Commit-Position: refs/heads/master@{#314091}
5 years, 10 months ago (2015-02-01 17:39:36 UTC) #12
Daniel Erat
On 2015/02/01 17:39:36, I haz the power (commit-bot) wrote: > Patchset 3 (id:??) landed as ...
5 years, 10 months ago (2015-02-02 03:19:57 UTC) #13
M-A Ruel
https://codereview.chromium.org/867163003/diff/40001/ui/PRESUBMIT.py File ui/PRESUBMIT.py (right): https://codereview.chromium.org/867163003/diff/40001/ui/PRESUBMIT.py#newcode26 ui/PRESUBMIT.py:26: if re.search(r'\bscoped_ptr<.*?>\(\)', line): input_api.re.search(
5 years, 10 months ago (2015-02-02 03:21:47 UTC) #14
tfarina
5 years, 10 months ago (2015-02-02 03:33:01 UTC) #15
Message was sent while issue was closed.
https://codereview.chromium.org/867163003/diff/40001/ui/PRESUBMIT.py
File ui/PRESUBMIT.py (right):

https://codereview.chromium.org/867163003/diff/40001/ui/PRESUBMIT.py#newcode26
ui/PRESUBMIT.py:26: if re.search(r'\bscoped_ptr<.*?>\(\)', line):
On 2015/02/02 03:21:47, M-A Ruel wrote:
> input_api.re.search(

Done.

Powered by Google App Engine
This is Rietveld 408576698