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

Unified Diff: remoting/host/native_messaging/native_messaging_reader.cc

Issue 2962443002: Rename TaskRunner::RunsTasksOnCurrentThread() in //remoting, //android_webview (Closed)
Patch Set: Created 3 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
Index: remoting/host/native_messaging/native_messaging_reader.cc
diff --git a/remoting/host/native_messaging/native_messaging_reader.cc b/remoting/host/native_messaging/native_messaging_reader.cc
index 112a5dbea6cb5f83f2ab30f65e59f45adbec9b9d..26940eba8cd7a0cb2ffa5f14e36f90d756acaf0e 100644
--- a/remoting/host/native_messaging/native_messaging_reader.cc
+++ b/remoting/host/native_messaging/native_messaging_reader.cc
@@ -88,7 +88,7 @@ NativeMessagingReader::Core::Core(
NativeMessagingReader::Core::~Core() {}
void NativeMessagingReader::Core::ReadMessage() {
- DCHECK(read_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(read_task_runner_->RunsTasksInCurrentSequence());
// Keep reading messages until the stream is closed or an error occurs.
while (true) {
@@ -136,7 +136,7 @@ void NativeMessagingReader::Core::ReadMessage() {
}
void NativeMessagingReader::Core::NotifyEof() {
- DCHECK(read_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(read_task_runner_->RunsTasksInCurrentSequence());
caller_task_runner_->PostTask(
FROM_HERE,
base::Bind(&NativeMessagingReader::InvokeEofCallback, reader_));
« no previous file with comments | « remoting/host/it2me/it2me_native_messaging_host_unittest.cc ('k') | remoting/host/security_key/security_key_message_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698