DescriptionUse weak_ptr in bind call to TraceLog::OnFlushTimeout
The reason for this change is that OnFlushTimeout callback
can run after TraceLog is destroyed for testing, if the message
loop that the task gets posted to is not destroyed.
(This undesirable effect can currently be seen in
https://codereview.chromium.org/468083004/, which causes
one of ios_dbg_simulator's net_unittests to crash.)
BUG=
Patch Set 1 #
Total comments: 1
Messages
Total messages: 8 (1 generated)
|