summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/chrome_net_log.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/net/chrome_net_log.cc')
-rw-r--r--chrome/browser/net/chrome_net_log.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/net/chrome_net_log.cc b/chrome/browser/net/chrome_net_log.cc
index dd9c62f..1003dfa 100644
--- a/chrome/browser/net/chrome_net_log.cc
+++ b/chrome/browser/net/chrome_net_log.cc
@@ -46,7 +46,11 @@ void ChromeNetLog::AddEntry(EventType type,
const Source& source,
EventPhase phase,
EventParameters* params) {
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO));
+ // This must be invoked when we're on the IO thread, or if the IO thread's
+ // message loop isn't valid. The later can happen if this is invoked when the
+ // IOThread is shuting down the MessageLoop.
+ DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO) ||
+ !ChromeThread::IsMessageLoopValid(ChromeThread::IO));
// Notify all of the log observers.
FOR_EACH_OBSERVER(Observer, observers_,