| Index: cc/trees/layer_tree_host_unittest.cc
|
| diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
|
| index b2c10efb0a08f0877521b59f85cb20e1c562bc93..0c90a5af6de7ccc8f3a2713e287b248c46eeb36f 100644
|
| --- a/cc/trees/layer_tree_host_unittest.cc
|
| +++ b/cc/trees/layer_tree_host_unittest.cc
|
| @@ -2024,6 +2024,10 @@ class LayerTreeHostTestAbortedCommitDoesntStallSynchronousCompositor
|
| }
|
|
|
| void ScheduledActionInvalidateOutputSurface() override {
|
| + // Do not call ImplThreadTaskRunner after the test ended because of the
|
| + // possibility of use-after-free due to a race.
|
| + if (TestEnded())
|
| + return;
|
| ImplThreadTaskRunner()->PostTask(
|
| FROM_HERE,
|
| base::Bind(
|
|
|