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
Review URL: http://codereview.chromium.org/8171013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104399 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: 7a15d117f34715773a07e821d6d259cc6e726ef9
2 files changed