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

Issue 340713002: chrome.serial: [POSIX] Queue *Completed() callback in Cancel*Impl() (Closed)

Created:
6 years, 6 months ago by hacker64
Modified:
6 years, 6 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

chrome.serial: [POSIX] Queue *Completed() callback in Cancel*Impl() On Mac, Linux and Chrome OS, when a call is made to SerialIoHandler::CancelRead() or SerialIoHandler::CancelWrite(), no callback to SerialIoHandler:ReadCompleted() or SerialIoHandler::WriteCompleted() is triggered in the underlying implementation, as it is on Windows. This causes the cleanup code in SerialConnection::OnAsync*Complete() to never be executed. To fix the behaviour, call SerialIoHandler::Queue*Completed() directly from SerialIoHandlerPosix::Cancel*Impl(). The only code changes are in serial_io_handler_posix.cc, so there should be no effect on Windows. BUG=383221 R=rockot@chromium.org TEST=Toggle chrome.serial.setPaused() true then false; more detail and a link to a test app is provided in crbug.com/383221 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278130

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/serial/serial_io_handler_posix.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
hacker64
6 years, 6 months ago (2014-06-18 02:49:57 UTC) #1
Ken Rockot(use gerrit already)
Nice. Thanks for the patch! LGTM.
6 years, 6 months ago (2014-06-18 15:14:20 UTC) #2
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 6 months ago (2014-06-18 15:14:25 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jhacker@arcanefour.com/340713002/1
6 years, 6 months ago (2014-06-18 15:15:03 UTC) #4
commit-bot: I haz the power
6 years, 6 months ago (2014-06-18 18:39:44 UTC) #5
Message was sent while issue was closed.
Change committed as 278130

Powered by Google App Engine
This is Rietveld 408576698