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

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: Fix chromecast compile 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/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..8b0350ce48f7e74b38e4bd0217ce4d89d2043f1b 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->AssertCalledOnValidSequence();
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->AssertCalledOnValidSequence();
std::string json;
base::JSONWriter::Write(

Powered by Google App Engine
This is Rietveld 408576698