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

Issue 1407093002: media/PRESUBMIT.py: adding CheckPassByValue for base::Time and derived classes (Closed)

Created:
5 years, 2 months ago by mcasas
Modified:
4 years, 8 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media/PRESUBMIT.py: adding CheckPassByValue for base::Time and derived classes This bites me every time, that base::Time, TimeTicks, TimeDelta should be passed by value, not by const&. The original function is from cc/PRESUBMIT.py and copied nearly-verbatim here (removed the white_list and black_list parameters and checking all CL code files instead). TEST= Only way I could was to add a method somewhere with a const base::TimeTicks& as argument and running a git cl presubmit, which found this and complained. Committed: https://crrev.com/e60e4f755c905b7a86dd967767ffc550714f60b6 Cr-Commit-Position: refs/heads/master@{#384769}

Patch Set 1 : tested #

Total comments: 12

Patch Set 2 : sandersd@ comments #

Patch Set 3 : second round of comments #

Total comments: 8

Patch Set 4 : third round of comments!! #

Total comments: 4

Patch Set 5 : #

Total comments: 2

Patch Set 6 : PASS_BY_VALUE_RE--> BASE_TIME_TYPES_RE #

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

Messages

Total messages: 27 (7 generated)
mcasas
sandersd@ PTAL
5 years, 2 months ago (2015-10-15 23:25:43 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407093002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407093002/20001
5 years, 2 months ago (2015-10-16 00:40:53 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-16 00:52:45 UTC) #7
sandersd (OOO until July 31)
https://codereview.chromium.org/1407093002/diff/20001/media/PRESUBMIT.py File media/PRESUBMIT.py (right): https://codereview.chromium.org/1407093002/diff/20001/media/PRESUBMIT.py#newcode164 media/PRESUBMIT.py:164: def _CheckPassByValue(input_api, No need to wrap arguments. https://codereview.chromium.org/1407093002/diff/20001/media/PRESUBMIT.py#newcode176 media/PRESUBMIT.py:176: ...
5 years, 2 months ago (2015-10-16 00:54:32 UTC) #8
mcasas
PTAL https://chromiumcodereview.appspot.com/1407093002/diff/20001/media/PRESUBMIT.py File media/PRESUBMIT.py (right): https://chromiumcodereview.appspot.com/1407093002/diff/20001/media/PRESUBMIT.py#newcode164 media/PRESUBMIT.py:164: def _CheckPassByValue(input_api, On 2015/10/16 00:54:31, sandersd wrote: > ...
5 years, 2 months ago (2015-10-16 18:00:11 UTC) #9
sandersd (OOO until July 31)
https://chromiumcodereview.appspot.com/1407093002/diff/20001/media/PRESUBMIT.py File media/PRESUBMIT.py (right): https://chromiumcodereview.appspot.com/1407093002/diff/20001/media/PRESUBMIT.py#newcode177 media/PRESUBMIT.py:177: string.join(pass_by_value_types, '|'), On 2015/10/16 18:00:11, mcasas wrote: > On ...
5 years, 2 months ago (2015-10-16 18:27:12 UTC) #10
mcasas
PTAL https://chromiumcodereview.appspot.com/1407093002/diff/20001/media/PRESUBMIT.py File media/PRESUBMIT.py (right): https://chromiumcodereview.appspot.com/1407093002/diff/20001/media/PRESUBMIT.py#newcode177 media/PRESUBMIT.py:177: string.join(pass_by_value_types, '|'), On 2015/10/16 18:27:12, sandersd wrote: > ...
5 years, 2 months ago (2015-10-16 21:40:42 UTC) #11
sandersd (OOO until July 31)
https://chromiumcodereview.appspot.com/1407093002/diff/60001/media/PRESUBMIT.py File media/PRESUBMIT.py (right): https://chromiumcodereview.appspot.com/1407093002/diff/60001/media/PRESUBMIT.py#newcode18 media/PRESUBMIT.py:18: ] Can you check that pyformat agrees with this? ...
5 years, 2 months ago (2015-10-16 21:52:27 UTC) #12
mcasas
PTAL https://chromiumcodereview.appspot.com/1407093002/diff/60001/media/PRESUBMIT.py File media/PRESUBMIT.py (right): https://chromiumcodereview.appspot.com/1407093002/diff/60001/media/PRESUBMIT.py#newcode18 media/PRESUBMIT.py:18: ] On 2015/10/16 21:52:27, sandersd wrote: > Can ...
5 years, 2 months ago (2015-10-20 00:24:18 UTC) #13
sandersd (OOO until July 31)
https://chromiumcodereview.appspot.com/1407093002/diff/80001/media/PRESUBMIT.py File media/PRESUBMIT.py (right): https://chromiumcodereview.appspot.com/1407093002/diff/80001/media/PRESUBMIT.py#newcode15 media/PRESUBMIT.py:15: PASS_BY_VALUE_TYPES = [ Based on the message I'd rename ...
5 years, 2 months ago (2015-10-20 00:29:09 UTC) #14
mcasas
https://chromiumcodereview.appspot.com/1407093002/diff/80001/media/PRESUBMIT.py File media/PRESUBMIT.py (right): https://chromiumcodereview.appspot.com/1407093002/diff/80001/media/PRESUBMIT.py#newcode15 media/PRESUBMIT.py:15: PASS_BY_VALUE_TYPES = [ On 2015/10/20 00:29:08, sandersd wrote: > ...
5 years, 2 months ago (2015-10-20 00:32:21 UTC) #15
sandersd (OOO until July 31)
https://chromiumcodereview.appspot.com/1407093002/diff/100001/media/PRESUBMIT.py File media/PRESUBMIT.py (right): https://chromiumcodereview.appspot.com/1407093002/diff/100001/media/PRESUBMIT.py#newcode21 media/PRESUBMIT.py:21: PASS_BY_VALUE_RE = re.compile(r'\bconst (%s)&' % This should be BASE_TIME_TYPES_RE ...
5 years, 2 months ago (2015-10-20 21:01:03 UTC) #16
mcasas
On 2015/10/20 21:01:03, sandersd wrote: > https://chromiumcodereview.appspot.com/1407093002/diff/100001/media/PRESUBMIT.py > File media/PRESUBMIT.py (right): > > https://chromiumcodereview.appspot.com/1407093002/diff/100001/media/PRESUBMIT.py#newcode21 > ...
5 years, 2 months ago (2015-10-20 21:33:20 UTC) #17
sandersd (OOO until July 31)
On 2015/10/20 21:33:20, mcasas wrote: > On 2015/10/20 21:01:03, sandersd wrote: > > > https://chromiumcodereview.appspot.com/1407093002/diff/100001/media/PRESUBMIT.py ...
5 years, 2 months ago (2015-10-20 23:45:24 UTC) #18
mcasas
sanders@ I resuscitated this CL that was somewhere zombiefid, could you PTAL? thanks! https://codereview.chromium.org/1407093002/diff/100001/media/PRESUBMIT.py File ...
4 years, 8 months ago (2016-04-01 21:34:39 UTC) #19
sandersd (OOO until July 31)
lgtm
4 years, 8 months ago (2016-04-01 21:36:23 UTC) #20
mcasas
On 2016/04/01 21:36:23, sandersd wrote: > lgtm \o/
4 years, 8 months ago (2016-04-01 21:47:47 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407093002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407093002/120001
4 years, 8 months ago (2016-04-01 21:49:00 UTC) #23
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 8 months ago (2016-04-02 01:20:55 UTC) #25
commit-bot: I haz the power
4 years, 8 months ago (2016-04-02 01:22:23 UTC) #27
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e60e4f755c905b7a86dd967767ffc550714f60b6
Cr-Commit-Position: refs/heads/master@{#384769}

Powered by Google App Engine
This is Rietveld 408576698