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

Issue 1712333002: Replace ErrorCallbackTask in RTCPeerConnection.cpp with WTF::bind() (Closed)

Created:
4 years, 10 months ago by hiroshige
Modified:
4 years, 10 months ago
CC:
chromium-reviews, blink-reviews, tommyw+watchlist_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@Bind_WeakPersistent
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace ErrorCallbackTask in RTCPeerConnection.cpp with WTF::bind() BUG=478194 Committed: https://crrev.com/c04a33bce2761ef30c51a833781effc7162e68cd Cr-Commit-Position: refs/heads/master@{#377901}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -28 lines) Patch
M third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp View 1 2 1 chunk +2 lines, -28 lines 0 comments Download

Messages

Total messages: 44 (18 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1712333002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1712333002/1
4 years, 10 months ago (2016-02-19 20:11:58 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1712333002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1712333002/40001
4 years, 10 months ago (2016-02-19 20:23:49 UTC) #5
hiroshige
Could you take a look?
4 years, 10 months ago (2016-02-19 20:38:32 UTC) #7
Guido Urdaneta
On 2016/02/19 20:38:32, hiroshige wrote: > Could you take a look? During a code review ...
4 years, 10 months ago (2016-02-19 20:58:38 UTC) #8
hiroshige
I think if we bind() a pointer to GarbageCollected object, WTF::Function holds Persistent to that. ...
4 years, 10 months ago (2016-02-19 21:10:25 UTC) #10
sof
On 2016/02/19 21:10:25, hiroshige wrote: > I think if we bind() a pointer to GarbageCollected ...
4 years, 10 months ago (2016-02-19 21:18:55 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/183951)
4 years, 10 months ago (2016-02-19 21:36:10 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1712333002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1712333002/40001
4 years, 10 months ago (2016-02-20 01:49:57 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-20 02:51:30 UTC) #17
hiroshige
philipj@, could you take a look as an OWNER? Using bind() with GarbageCollected pointers keeps ...
4 years, 10 months ago (2016-02-23 18:48:39 UTC) #19
philipj_slow
LGTM, nice simplification! It looks like it will be stored as CrossThreadPersistent<T>, which I guess ...
4 years, 10 months ago (2016-02-24 08:31:18 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1712333002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1712333002/60001
4 years, 10 months ago (2016-02-25 22:44:44 UTC) #22
hiroshige
On 2016/02/24 08:31:18, philipj_UTC7 wrote: > LGTM, nice simplification! > > It looks like it ...
4 years, 10 months ago (2016-02-26 01:05:21 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/179906)
4 years, 10 months ago (2016-02-26 01:45:46 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1712333002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1712333002/60001
4 years, 10 months ago (2016-02-26 01:50:12 UTC) #27
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-26 03:36:55 UTC) #29
philipj_slow
Still LGTM, but also adding module owner for final say.
4 years, 10 months ago (2016-02-26 07:50:39 UTC) #31
haraken
LGTM. I'd prefer using "WTF::"bind though.
4 years, 10 months ago (2016-02-26 08:41:15 UTC) #32
tommi (sloooow) - chröme
lgtm
4 years, 10 months ago (2016-02-26 11:13:05 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1712333002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1712333002/60001
4 years, 10 months ago (2016-02-26 16:21:34 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1712333002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1712333002/60001
4 years, 10 months ago (2016-02-26 16:30:17 UTC) #38
hiroshige
On 2016/02/26 08:41:15, haraken wrote: > LGTM. I'd prefer using "WTF::"bind though. Could you clarify ...
4 years, 10 months ago (2016-02-26 16:36:32 UTC) #39
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 10 months ago (2016-02-26 16:45:45 UTC) #40
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/c04a33bce2761ef30c51a833781effc7162e68cd Cr-Commit-Position: refs/heads/master@{#377901}
4 years, 10 months ago (2016-02-26 16:46:37 UTC) #42
haraken
On 2016/02/26 16:36:32, hiroshige wrote: > On 2016/02/26 08:41:15, haraken wrote: > > LGTM. I'd ...
4 years, 10 months ago (2016-02-26 17:06:40 UTC) #43
hiroshige
4 years, 10 months ago (2016-02-26 17:26:50 UTC) #44
Message was sent while issue was closed.
On 2016/02/26 17:06:40, haraken wrote:
> On 2016/02/26 16:36:32, hiroshige wrote:
> > On 2016/02/26 08:41:15, haraken wrote:
> > > LGTM. I'd prefer using "WTF::"bind though.
> > 
> > Could you clarify the reason?
> > If WTF::bind() is better, how about remove "using WTF::bind;" in
> > wtf/Functional.h and replace all bind() usage without WTF:: prefix?
> 
> Sorry, you're right. I was just looking at Node.cpp and thought that we prefer
> WTF::bind than bind.

Er, I found a possible reason to enforce WTF::bind(): conflict with std::bind().
Usually this is not a problem because we don't use "using namespace std", but
sometimes we have to write "WTF::bind" explicitly to avoid to be resolved to
std::bind(), due to argument-dependent lookup.
Example: Line 123. Because |html| is |const std::string&|, so bind() here is
resolved to std::bind() if we don't write "WTF::".
https://codereview.chromium.org/1710403003/diff/80001/third_party/WebKit/Sour...

Powered by Google App Engine
This is Rietveld 408576698