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

Issue 646053002: Implement permission_broker for serial devices. (Closed)

Created:
6 years, 2 months ago by Jorge Lucangeli Obes
Modified:
6 years, 2 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Implement permission_broker for serial devices. This change makes Chrome on Chrome OS ask permission_broker for access to serial devices. BUG=173548 TEST=Chrome can access serial devices on Linux, chromeos=1, full Chrome OS. Committed: https://crrev.com/2aa4e40e4bac2c708c0e91c9a7c03fb9539323fd Cr-Commit-Position: refs/heads/master@{#300364}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Call PermissionBrokerClient on the UI thread. #

Patch Set 3 : Fix comment. #

Total comments: 2

Patch Set 4 : Fix Windows compile. #

Patch Set 5 : Fix device_unittests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -30 lines) Patch
M device/serial/serial_io_handler.h View 1 2 6 chunks +16 lines, -3 lines 0 comments Download
M device/serial/serial_io_handler.cc View 1 2 chunks +34 lines, -8 lines 0 comments Download
M device/serial/serial_io_handler_posix.h View 1 1 chunk +6 lines, -1 line 0 comments Download
M device/serial/serial_io_handler_posix.cc View 1 3 chunks +45 lines, -5 lines 0 comments Download
M device/serial/serial_io_handler_win.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M device/serial/serial_io_handler_win.cc View 1 2 3 2 chunks +7 lines, -4 lines 0 comments Download
M device/serial/serial_service_impl.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M device/serial/serial_service_impl.cc View 1 2 chunks +9 lines, -5 lines 0 comments Download
M device/serial/serial_service_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M device/serial/test_serial_io_handler.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/api/serial/serial_connection.cc View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 17 (2 generated)
Jorge Lucangeli Obes
Hi guys, This is a very early draft to discuss where in the serial device ...
6 years, 2 months ago (2014-10-10 21:17:27 UTC) #2
Jorge Lucangeli Obes
Hi guys, This is a very early draft to discuss where in the serial device ...
6 years, 2 months ago (2014-10-10 21:17:27 UTC) #3
Reilly Grant (use Gerrit)
Given that the open operation is asynchronous anyways this seems like the perfect place to ...
6 years, 2 months ago (2014-10-10 21:31:53 UTC) #4
Jorge Lucangeli Obes
PTAL. PermissionBrokerClient is now called on the UI thread. It required some plumbing but it's ...
6 years, 2 months ago (2014-10-13 20:56:43 UTC) #5
Jorge Lucangeli Obes
Friendly ping. Thanks for taking a look!
6 years, 2 months ago (2014-10-15 00:23:27 UTC) #6
Reilly Grant (use Gerrit)
lgtm with a nit
6 years, 2 months ago (2014-10-15 00:32:55 UTC) #7
Reilly Grant (use Gerrit)
https://chromiumcodereview.appspot.com/646053002/diff/170001/device/serial/serial_io_handler.cc File device/serial/serial_io_handler.cc (right): https://chromiumcodereview.appspot.com/646053002/diff/170001/device/serial/serial_io_handler.cc#newcode39 device/serial/serial_io_handler.cc:39: scoped_refptr<base::MessageLoopProxy> ui_message_loop) { Why pass these as parameters when ...
6 years, 2 months ago (2014-10-15 00:33:03 UTC) #8
Jorge Lucangeli Obes
https://chromiumcodereview.appspot.com/646053002/diff/170001/device/serial/serial_io_handler.cc File device/serial/serial_io_handler.cc (right): https://chromiumcodereview.appspot.com/646053002/diff/170001/device/serial/serial_io_handler.cc#newcode39 device/serial/serial_io_handler.cc:39: scoped_refptr<base::MessageLoopProxy> ui_message_loop) { On 2014/10/15 00:33:02, reillyg wrote: > ...
6 years, 2 months ago (2014-10-15 00:35:58 UTC) #9
Ken Rockot(use gerrit already)
lgtm too, fwiw
6 years, 2 months ago (2014-10-15 21:08:49 UTC) #10
Jorge Lucangeli Obes
On 2014/10/15 21:08:49, Ken Rockot wrote: > lgtm too, fwiw Thanks guys! I'm fixing one ...
6 years, 2 months ago (2014-10-15 22:23:06 UTC) #11
Jorge Lucangeli Obes
On 2014/10/15 22:23:06, Jorge Lucangeli Obes wrote: > On 2014/10/15 21:08:49, Ken Rockot wrote: > ...
6 years, 2 months ago (2014-10-17 21:01:29 UTC) #12
Jorge Lucangeli Obes
On 2014/10/17 21:01:29, Jorge Lucangeli Obes wrote: > On 2014/10/15 22:23:06, Jorge Lucangeli Obes wrote: ...
6 years, 2 months ago (2014-10-20 21:57:42 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/646053002/220001
6 years, 2 months ago (2014-10-20 22:00:58 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:220001)
6 years, 2 months ago (2014-10-20 22:43:08 UTC) #16
commit-bot: I haz the power
6 years, 2 months ago (2014-10-20 22:44:43 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2aa4e40e4bac2c708c0e91c9a7c03fb9539323fd
Cr-Commit-Position: refs/heads/master@{#300364}

Powered by Google App Engine
This is Rietveld 408576698