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

Unified Diff: net/log/net_log_util.cc

Issue 2910473005: Deprecate NonThreadSafe in net/ in favor of SequenceChecker/ThreadChecker. (Closed)
Patch Set: rebase on r476634 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
« no previous file with comments | « net/http/transport_security_state.cc ('k') | net/log/write_to_file_net_log_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/log/net_log_util.cc
diff --git a/net/log/net_log_util.cc b/net/log/net_log_util.cc
index cc426455ccabc464e27c6d85e8f955e2910134b8..411c010e28e7278fdfcc3d9ae2170dee1ac31334 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->AssertCalledOnValidThread();
std::unique_ptr<base::DictionaryValue> net_info_dict(
new base::DictionaryValue());
@@ -482,7 +482,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->AssertCalledOnValidThread();
// Contexts should all be using the same NetLog.
DCHECK_EQ((*contexts.begin())->net_log(), context->net_log());
for (auto* request : context->url_requests()) {
« no previous file with comments | « net/http/transport_security_state.cc ('k') | net/log/write_to_file_net_log_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698