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

Unified Diff: net/log/write_to_file_net_log_observer.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/log/net_log_util.cc ('k') | net/proxy/dhcp_proxy_script_adapter_fetcher_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/log/write_to_file_net_log_observer.cc
diff --git a/net/log/write_to_file_net_log_observer.cc b/net/log/write_to_file_net_log_observer.cc
index 5470ebbcd44d2d880fe9b1a4d8c387ea5db9f7f2..ce23799402e00e95f998642ddb7bc1ca3e98d7c7 100644
--- a/net/log/write_to_file_net_log_observer.cc
+++ b/net/log/write_to_file_net_log_observer.cc
@@ -57,7 +57,7 @@ void WriteToFileNetLogObserver::StartObserving(
// Add events for in progress requests if a context is given.
if (url_request_context) {
- DCHECK(url_request_context->CalledOnValidThread());
+ url_request_context->AssertCalledOnValidThread();
std::set<URLRequestContext*> contexts;
contexts.insert(url_request_context);
@@ -76,7 +76,7 @@ void WriteToFileNetLogObserver::StopObserving(
// Write state of the URLRequestContext when logging stopped.
if (url_request_context) {
- DCHECK(url_request_context->CalledOnValidThread());
+ url_request_context->AssertCalledOnValidThread();
std::string json;
base::JSONWriter::Write(
« no previous file with comments | « net/log/net_log_util.cc ('k') | net/proxy/dhcp_proxy_script_adapter_fetcher_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698