Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1145)

Unified Diff: content/browser/browser_thread_impl.cc

Issue 2627453004: Tweaks to new BrowserThreadImpl/BrowserMainLoop logic. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {
« content/browser/browser_main_loop.cc ('K') | « content/browser/browser_main_loop.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698