Index: net/log/net_log_util.cc |
diff --git a/net/log/net_log_util.cc b/net/log/net_log_util.cc |
index 85b546043c83bb470774f0730564c88eae2fe443..86032ca97133bcd76346901d1ef2f03912419024 100644 |
--- a/net/log/net_log_util.cc |
+++ b/net/log/net_log_util.cc |
@@ -325,7 +325,7 @@ NET_EXPORT std::unique_ptr<base::DictionaryValue> GetNetInfo( |
URLRequestContext* context, |
int info_sources) { |
// May only be called on the context's thread. |
- DCHECK(context->CalledOnValidThread()); |
+ context->AssertCalledOnValidSequence(); |
std::unique_ptr<base::DictionaryValue> net_info_dict( |
new base::DictionaryValue()); |
@@ -512,7 +512,7 @@ NET_EXPORT void CreateNetLogEntriesForActiveObjects( |
std::vector<const URLRequest*> requests; |
for (auto* context : contexts) { |
// May only be called on the context's thread. |
- DCHECK(context->CalledOnValidThread()); |
+ context->AssertCalledOnValidSequence(); |
// Contexts should all be using the same NetLog. |
DCHECK_EQ((*contexts.begin())->net_log(), context->net_log()); |
for (auto* request : context->url_requests()) { |