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

Issue 2723083004: Remove a scoped_refptr<>::swap overload (Closed)

Created:
3 years, 9 months ago by tzik
Modified:
3 years, 9 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, vmpstr+watch_chromium.org, posciak+watch_chromium.org, gavinp+memory_chromium.org, net-reviews_chromium.org, feature-media-reviews_chromium.org, gavinp
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove a scoped_refptr<>::swap overload A scoped_refptr<>::swap overload is used to insert or remove the internal pointer without manipulating the ref count. That functionality should not be exposed, or at least, should be exposed separately with better name. This CL removes the swap() overload, and rewrites callers without swap(). Review-Url: https://codereview.chromium.org/2723083004 Cr-Original-Commit-Position: refs/heads/master@{#455407} Committed: https://chromium.googlesource.com/chromium/src/+/511c810d540422faf221bd82a4532313cabcc4c4 Review-Url: https://codereview.chromium.org/2723083004 Cr-Commit-Position: refs/heads/master@{#456685} Committed: https://chromium.googlesource.com/chromium/src/+/93906711428eb47c0b9feeb0916fc91b1218afa3

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix #

Total comments: 5

Patch Set 4 : rebase on crrev.com/2733693002 #

Patch Set 5 : avoid to use std::swap #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -15 lines) Patch
M base/memory/ref_counted.h View 1 2 3 4 1 chunk +3 lines, -7 lines 0 comments Download
M media/filters/ffmpeg_audio_decoder.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 66 (40 generated)
tzik
PTAL
3 years, 9 months ago (2017-03-02 17:52:29 UTC) #11
dcheng
https://codereview.chromium.org/2723083004/diff/40001/net/disk_cache/blockfile/backend_impl.cc File net/disk_cache/blockfile/backend_impl.cc (right): https://codereview.chromium.org/2723083004/diff/40001/net/disk_cache/blockfile/backend_impl.cc#newcode544 net/disk_cache/blockfile/backend_impl.cc:544: parent_entry->Release(); Is there any chance we can fix the ...
3 years, 9 months ago (2017-03-02 18:40:19 UTC) #13
dcheng
LGTM But maybe let's file a followup bug and assign to //net team... the manual ...
3 years, 9 months ago (2017-03-02 18:47:02 UTC) #14
tzik
Adding //net and //media owners. PTAL to: jkarlin: //net/disk_cache, mmenke: //net as an owner, xhwang: ...
3 years, 9 months ago (2017-03-02 19:26:29 UTC) #19
tzik
On 2017/03/02 19:26:29, tzik wrote: > Adding //net and //media owners. > PTAL to: > ...
3 years, 9 months ago (2017-03-03 06:29:30 UTC) #21
jkarlin
This makes the code even less readable. I don't think I like this approach. Better ...
3 years, 9 months ago (2017-03-03 15:30:32 UTC) #22
jkarlin
On 2017/03/03 06:29:30, tzik wrote: > On 2017/03/02 19:26:29, tzik wrote: > > Adding //net ...
3 years, 9 months ago (2017-03-03 15:31:40 UTC) #23
xhwang
LGTM % comment https://codereview.chromium.org/2723083004/diff/40001/media/filters/ffmpeg_audio_decoder.cc File media/filters/ffmpeg_audio_decoder.cc (right): https://codereview.chromium.org/2723083004/diff/40001/media/filters/ffmpeg_audio_decoder.cc#newcode128 media/filters/ffmpeg_audio_decoder.cc:128: opaque->AddRef(); This is hard to read ...
3 years, 9 months ago (2017-03-03 18:36:08 UTC) #24
dcheng
https://codereview.chromium.org/2723083004/diff/40001/media/filters/ffmpeg_audio_decoder.cc File media/filters/ffmpeg_audio_decoder.cc (right): https://codereview.chromium.org/2723083004/diff/40001/media/filters/ffmpeg_audio_decoder.cc#newcode128 media/filters/ffmpeg_audio_decoder.cc:128: opaque->AddRef(); On 2017/03/03 18:36:08, xhwang_slow wrote: > This is ...
3 years, 9 months ago (2017-03-03 18:45:19 UTC) #25
tzik
On 2017/03/03 15:30:32, jkarlin wrote: > This makes the code even less readable. I don't ...
3 years, 9 months ago (2017-03-04 16:16:06 UTC) #26
mmenke
On 2017/03/04 16:16:06, tzik wrote: > On 2017/03/03 15:30:32, jkarlin wrote: > > This makes ...
3 years, 9 months ago (2017-03-06 21:16:31 UTC) #32
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/2723083004/60001
3 years, 9 months ago (2017-03-08 03:47:39 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/404520)
3 years, 9 months ago (2017-03-08 04:56:01 UTC) #38
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/2723083004/60001
3 years, 9 months ago (2017-03-08 04:59:20 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/404567)
3 years, 9 months ago (2017-03-08 05:39:11 UTC) #42
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/2723083004/60001
3 years, 9 months ago (2017-03-08 06:32:38 UTC) #44
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/511c810d540422faf221bd82a4532313cabcc4c4
3 years, 9 months ago (2017-03-08 09:01:17 UTC) #47
estevenson
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2732063005/ by estevenson@chromium.org. ...
3 years, 9 months ago (2017-03-08 15:24:06 UTC) #48
tzik
On 2017/03/08 15:24:06, estevenson wrote: > A revert of this CL (patchset #4 id:60001) has ...
3 years, 9 months ago (2017-03-08 20:15:20 UTC) #49
tzik
On 2017/03/08 20:15:20, tzik wrote: > On 2017/03/08 15:24:06, estevenson wrote: > > A revert ...
3 years, 9 months ago (2017-03-08 20:33:22 UTC) #52
battre
On 2017/03/08 20:33:22, tzik wrote: > On 2017/03/08 20:15:20, tzik wrote: > > On 2017/03/08 ...
3 years, 9 months ago (2017-03-08 21:38:42 UTC) #54
pkalinnikov
On 2017/03/08 21:38:42, battre wrote: > On 2017/03/08 20:33:22, tzik wrote: > > On 2017/03/08 ...
3 years, 9 months ago (2017-03-09 10:39:44 UTC) #55
pkalinnikov
I am working on a CL to update FlatBuffers version: https://codereview.chromium.org/2740103002/
3 years, 9 months ago (2017-03-09 11:47:21 UTC) #56
tzik
Removed #include <algorithm> as a workaround of the failure. This CL should work even without ...
3 years, 9 months ago (2017-03-14 12:25:44 UTC) #59
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/2723083004/80001
3 years, 9 months ago (2017-03-14 12:26:26 UTC) #63
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 13:28:26 UTC) #66
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/93906711428eb47c0b9feeb0916f...

Powered by Google App Engine
This is Rietveld 408576698