diff options
author | jorgelo <jorgelo@chromium.org> | 2014-10-20 15:42:36 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-20 22:43:47 +0000 |
commit | 2aa4e40e4bac2c708c0e91c9a7c03fb9539323fd (patch) | |
tree | ace1b85d15e3a367700ea6360d749a57f0e08438 /extensions | |
parent | f937604c661f75a423b6e1c0a285eff9a8556577 (diff) | |
download | chromium_src-2aa4e40e4bac2c708c0e91c9a7c03fb9539323fd.zip chromium_src-2aa4e40e4bac2c708c0e91c9a7c03fb9539323fd.tar.gz chromium_src-2aa4e40e4bac2c708c0e91c9a7c03fb9539323fd.tar.bz2 |
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.
Review URL: https://codereview.chromium.org/646053002
Cr-Commit-Position: refs/heads/master@{#300364}
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/browser/api/serial/serial_connection.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/browser/api/serial/serial_connection.cc b/extensions/browser/api/serial/serial_connection.cc index 131aa61..f1963e6 100644 --- a/extensions/browser/api/serial/serial_connection.cc +++ b/extensions/browser/api/serial/serial_connection.cc @@ -204,7 +204,9 @@ SerialConnection::SerialConnection(const std::string& port, paused_(false), io_handler_(device::SerialIoHandler::Create( content::BrowserThread::GetMessageLoopProxyForThread( - content::BrowserThread::FILE))) { + content::BrowserThread::FILE), + content::BrowserThread::GetMessageLoopProxyForThread( + content::BrowserThread::UI))) { DCHECK_CURRENTLY_ON(BrowserThread::IO); } |