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

Unified Diff: net/test/spawned_test_server/spawner_communicator.cc

Issue 2082773002: Remove calls to MessageLoop::current() in net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: forward declaration Created 4 years, 6 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/quic/quic_connection_logger.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/spawned_test_server/spawner_communicator.cc
diff --git a/net/test/spawned_test_server/spawner_communicator.cc b/net/test/spawned_test_server/spawner_communicator.cc
index cfa509b722ac517549b958e870297bb752a87fcf..05865d94efc50a2afb906e20a51c46468dd0ab4e 100644
--- a/net/test/spawned_test_server/spawner_communicator.cc
+++ b/net/test/spawned_test_server/spawner_communicator.cc
@@ -175,7 +175,7 @@ void SpawnerCommunicator::SendCommandAndWaitForResultOnIOThread(
std::string* data_received) {
base::MessageLoop* loop = io_thread_.message_loop();
DCHECK(loop);
- DCHECK_EQ(base::MessageLoop::current(), loop);
+ DCHECK(loop->task_runner()->BelongsToCurrentThread());
// Prepare the URLRequest for sending the command.
DCHECK(!cur_request_.get());
« no previous file with comments | « net/quic/quic_connection_logger.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698