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

Issue 2867013003: Remove base::SupportsWeakPtr from {Audio,Video}Sender (Closed)

Created:
3 years, 7 months ago by Chandan
Modified:
3 years, 7 months ago
Reviewers:
hubbe, miu
CC:
chromium-reviews, imcheng+watch_chromium.org, posciak+watch_chromium.org, jasonroberts+watch_google.com, avayvod+watch_chromium.org, feature-media-reviews_chromium.org, xjz+watch_chromium.org, mfoltz+watch_chromium.org, isheriff+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove base::SupportsWeakPtr from {Audio,Video}Sender {Audio,Video}Sender already creates a WeakPtrFactory instance to access its weak pointer. Therefore, it does not have to inherit base::SupportsWeakPtr. This CL removes SupportsWeakPtr and exposes its weak pointer outside the class via AsWeakPtr(). BUG=None Review-Url: https://codereview.chromium.org/2867013003 Cr-Commit-Position: refs/heads/master@{#470454} Committed: https://chromium.googlesource.com/chromium/src/+/28b78a893c03f9da7d84fbee4e1a652211b6b905

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove base::SupportsWeakPtr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -10 lines) Patch
M media/cast/sender/audio_sender.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M media/cast/sender/audio_sender.cc View 1 2 chunks +6 lines, -2 lines 0 comments Download
M media/cast/sender/video_sender.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M media/cast/sender/video_sender.cc View 1 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
Chandan
PTAL. Thank you.
3 years, 7 months ago (2017-05-08 16:12:08 UTC) #6
hubbe
On 2017/05/08 16:12:08, Chandan wrote: > PTAL. Thank you. Don't we usually prefer composition over ...
3 years, 7 months ago (2017-05-08 17:19:19 UTC) #7
Chandan
On 2017/05/08 17:19:19, hubbe wrote: > On 2017/05/08 16:12:08, Chandan wrote: > > PTAL. Thank ...
3 years, 7 months ago (2017-05-08 17:52:00 UTC) #8
miu
https://codereview.chromium.org/2867013003/diff/1/media/cast/sender/audio_sender.h File media/cast/sender/audio_sender.h (left): https://codereview.chromium.org/2867013003/diff/1/media/cast/sender/audio_sender.h#oldcode67 media/cast/sender/audio_sender.h:67: base::WeakPtrFactory<AudioSender> weak_factory_; We can't do this: When ~AudioSender() is ...
3 years, 7 months ago (2017-05-08 20:04:31 UTC) #9
Chandan
https://codereview.chromium.org/2867013003/diff/1/media/cast/sender/audio_sender.h File media/cast/sender/audio_sender.h (left): https://codereview.chromium.org/2867013003/diff/1/media/cast/sender/audio_sender.h#oldcode67 media/cast/sender/audio_sender.h:67: base::WeakPtrFactory<AudioSender> weak_factory_; On 2017/05/08 20:04:31, miu wrote: > We ...
3 years, 7 months ago (2017-05-08 21:04:30 UTC) #10
Chandan
On 2017/05/08 21:04:30, Chandan wrote: > https://codereview.chromium.org/2867013003/diff/1/media/cast/sender/audio_sender.h > File media/cast/sender/audio_sender.h (left): > > https://codereview.chromium.org/2867013003/diff/1/media/cast/sender/audio_sender.h#oldcode67 > ...
3 years, 7 months ago (2017-05-09 11:06:23 UTC) #16
miu
PS2 lgtm! :)
3 years, 7 months ago (2017-05-09 19:54:48 UTC) #17
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/2867013003/20001
3 years, 7 months ago (2017-05-10 02:51:10 UTC) #19
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 04:43:50 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/28b78a893c03f9da7d84fbee4e1a...

Powered by Google App Engine
This is Rietveld 408576698