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

Unified Diff: net/log/net_log_util.cc

Issue 2910473005: Deprecate NonThreadSafe in net/ in favor of SequenceChecker/ThreadChecker. (Closed)
Patch Set: another compile nit Created 3 years, 7 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: 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()) {

Powered by Google App Engine
This is Rietveld 408576698