Chromium Code Reviews
DescriptionMake Callback::Reset() return a copy to support use-cases where Run() ends up modifying |*this|. Callers can use
cb.Reset().Run(args...);
to avoid reentrancy-like bugs.
Replace the special-purpose versions of ResetAndRunCB in the media/ codebase
with this more-general facility.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128772
Patch Set 1 : . #
Total comments: 3
Patch Set 2 : rebased #
Total comments: 4
Patch Set 3 : . #Patch Set 4 : Reset returns copy of *this #Patch Set 5 : base::ResetAndReturn is born. #
Total comments: 6
Patch Set 6 : no base:: #
Messages
Total messages: 18 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||