DescriptionLimit stack-allocated uses of CancellableTaskFactory(PassOwnPtr<Closure>).
Classes that keep a CancellableTaskFactory should create() these via the
provided factory method, which takes care of creating the task factory's
closure in a manner that doesn't cause an (Oilpan) leak.
Not using the factory method is convenient when testing, so accommodate
this by way of a protected CancellableTaskFactory<> constructor, and use
it in unit tests. The unit tests exercise functionality rather than direct
usage by Blink objects, so hiding the constructor is considered acceptable.
R=haraken
BUG=
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201916
Patch Set 1 #
Messages
Total messages: 6 (2 generated)
|