Descriptionbase: Add RetainedRef for unwrapping scoped_refptrs.
This patch adds a RetainedRef call in order to be used in Bind with
scoped_refptrs that are to be unwrapped before calling the function.
This is an effort to eliminate implicit scoped_refptr construction from
Bind. Currently, scoped_refptr are always unwrapped into their
underlying T*. This means that if the function does actually expect
a scoped_refptr, one will be constructed implicitly.
The plan is to stop unwrapping scoped_refptrs altogether. If the behavior
is still desired, then the object has to be wrapped in a RetainedRef
wrapper. For more details, please see crbug.com/589048
R=tzik@chromium.org, danakj@chromium.org, thakis@chromium.org
BUG=589048
Committed: https://crrev.com/1d492be0508e1638a37ac6a156d16e9f724da69c
Cr-Commit-Position: refs/heads/master@{#382076}
Patch Set 1 #
Total comments: 4
Patch Set 2 : #Messages
Total messages: 14 (6 generated)
|