DescriptionWhen using PostTaskAndReplyWithResults, if the ResultType is a passed type (eg: scoped_ptr and friends), .Pass() the result to the reply.
Because the temporary storage of the result is an implementation detail of PostTaskAndReplyWithResults, its safe to always assume that passed types should be passed.
BUG=126008
TEST=TaskRunnerHelpersTest.PostTaskAndReplyWithResultPassed
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=135228
Patch Set 1 #Patch Set 2 : Simpler #
Total comments: 1
Patch Set 3 : Feedback #Patch Set 4 : Rebased #
Messages
Total messages: 5 (0 generated)
|