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

Issue 1558623002: Remove redundant calls to Pass() in //net unit tests.. (Closed)

Created:
4 years, 11 months ago by dcheng
Modified:
4 years, 11 months ago
Reviewers:
eustas, Ryan Sleevi
CC:
cbentzel+watch_chromium.org, chromium-reviews, eustas
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove redundant calls to Pass() in //net unit tests.. There is no need to Pass() on rvalues: in fact, it prevents the compiler from applying optimizations like copy/move elision. BUG=557422 TBR=rsleevi@chromium.org Committed: https://crrev.com/a96b7d399aaa591595df7e6d6b007d625c5cf7b9 Cr-Commit-Position: refs/heads/master@{#367166}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -8 lines) Patch
M net/url_request/url_request_http_job_unittest.cc View 2 chunks +4 lines, -8 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
dcheng
4 years, 11 months ago (2015-12-30 18:30:26 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1558623002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1558623002/1
4 years, 11 months ago (2015-12-30 18:32:44 UTC) #4
Ryan Sleevi
lgtm
4 years, 11 months ago (2015-12-30 18:38:12 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 11 months ago (2015-12-30 18:58:43 UTC) #6
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/a96b7d399aaa591595df7e6d6b007d625c5cf7b9 Cr-Commit-Position: refs/heads/master@{#367166}
4 years, 11 months ago (2015-12-30 18:59:52 UTC) #8
eustas
lgtm Interesting - presubmit has recommended to remove .Pass() in one place, but did not ...
4 years, 11 months ago (2015-12-30 19:09:44 UTC) #10
dcheng
4 years, 11 months ago (2015-12-30 19:10:44 UTC) #11
Message was sent while issue was closed.
On 2015/12/30 at 19:09:44, eustas wrote:
> lgtm
> 
> Interesting - presubmit has recommended to remove .Pass() in one place, but
did not notice it here...

The regex the presubmit uses won't match if .Pass() is on a separate line from
the rest of the expression. One of the (many) problems with a regex based lint.

Powered by Google App Engine
This is Rietveld 408576698