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

Issue 8171013: Support scoped_refptr<> as the object for a method call in base::Bind(). Reduce useless copies. (Closed)

Created:
9 years, 2 months ago by awong
Modified:
9 years, 2 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org, darin (slow to review), akalin, csilv
Visibility:
Public.

Description

Support scoped_refptr<> as the object for a method call in base::Bind(). Reduce useless copies. Patch up an API hole where you can't do base::Bind(&Foo::method, ptr), if ptr is a scoped_refptr. Also modify Unwrap() to remove a couple of unecessary copies for scoped_refptrs, and WeakPtrs<>. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=104399

Patch Set 1 #

Patch Set 2 : Fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -3 lines) Patch
M base/bind_helpers.h View 1 2 chunks +13 lines, -0 lines 0 comments Download
M base/bind_unittest.cc View 3 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
awong
9 years, 2 months ago (2011-10-06 19:25:24 UTC) #1
awong
+csilv. FYI, your change shouldn't need the extra io_thraed.get() after this is checked in.
9 years, 2 months ago (2011-10-06 19:26:46 UTC) #2
willchan no longer on Chromium
lgtm
9 years, 2 months ago (2011-10-06 20:06:34 UTC) #3
commit-bot: I haz the power
9 years, 2 months ago (2011-10-06 21:59:11 UTC) #4

Powered by Google App Engine
This is Rietveld 408576698