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

Unified Diff: chrome/browser/extensions/api/serial/serial_io_handler_posix.cc

Issue 340713002: chrome.serial: [POSIX] Queue *Completed() callback in Cancel*Impl() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/serial/serial_io_handler_posix.cc
diff --git a/chrome/browser/extensions/api/serial/serial_io_handler_posix.cc b/chrome/browser/extensions/api/serial/serial_io_handler_posix.cc
index 6e8997b32fb3fbe3853c5d60ad262a1ff9d8577e..db2e1bd814c5133473f634e29be29a051f08120d 100644
--- a/chrome/browser/extensions/api/serial/serial_io_handler_posix.cc
+++ b/chrome/browser/extensions/api/serial/serial_io_handler_posix.cc
@@ -37,12 +37,14 @@ void SerialIoHandlerPosix::CancelReadImpl() {
DCHECK(CalledOnValidThread());
is_watching_reads_ = false;
file_read_watcher_.StopWatchingFileDescriptor();
+ QueueReadCompleted(0, read_cancel_reason());
}
void SerialIoHandlerPosix::CancelWriteImpl() {
DCHECK(CalledOnValidThread());
is_watching_writes_ = false;
file_write_watcher_.StopWatchingFileDescriptor();
+ QueueWriteCompleted(0, write_cancel_reason());
}
SerialIoHandlerPosix::SerialIoHandlerPosix()
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698