Index: content/browser/browser_thread_impl.cc |
diff --git a/content/browser/browser_thread_impl.cc b/content/browser/browser_thread_impl.cc |
index 459fc3cbc4dc939a6d887cedfc73dee28d3e45d0..2b89f6d15f9e9863f3af1e6318b8725cd0b0396e 100644 |
--- a/content/browser/browser_thread_impl.cc |
+++ b/content/browser/browser_thread_impl.cc |
@@ -356,7 +356,8 @@ void BrowserThreadImpl::ResetGlobalsForTesting(BrowserThread::ID identifier) { |
DCHECK_EQ(globals.states[identifier], BrowserThreadState::SHUTDOWN); |
globals.states[identifier] = BrowserThreadState::UNINITIALIZED; |
globals.task_runners[identifier] = nullptr; |
- SetIOThreadDelegate(nullptr); |
+ if (identifier == BrowserThread::IO) |
+ SetIOThreadDelegate(nullptr); |
gab
2017/01/10 15:48:28
This call only needs to happen once for the IO thr
|
} |
BrowserThreadImpl::~BrowserThreadImpl() { |