Index: cc/test/test_context_provider.cc |
diff --git a/cc/test/test_context_provider.cc b/cc/test/test_context_provider.cc |
index f027e031a7926d01ed1f01a90fb9624c02576f62..fd67a99c0bff7a5c0951412ee939b61094890440 100644 |
--- a/cc/test/test_context_provider.cc |
+++ b/cc/test/test_context_provider.cc |
@@ -146,7 +146,7 @@ |
void TestContextProvider::OnLostContext() { |
DCHECK(context_thread_checker_.CalledOnValidThread()); |
if (!lost_context_callback_.is_null()) |
- lost_context_callback_.Run(); |
+ base::ResetAndReturn(&lost_context_callback_).Run(); |
if (gr_context_) |
gr_context_->abandonContext(); |
} |