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

Unified Diff: device/serial/serial_service_impl.cc

Issue 646053002: Implement permission_broker for serial devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix device_unittests. Created 6 years, 2 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 | « device/serial/serial_service_impl.h ('k') | device/serial/serial_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_service_impl.cc
diff --git a/device/serial/serial_service_impl.cc b/device/serial/serial_service_impl.cc
index 0f87695eedf5fff70e60c068085c9736e9a8b93d..fceb448c275d8733972a968de8da743c402be5cd 100644
--- a/device/serial/serial_service_impl.cc
+++ b/device/serial/serial_service_impl.cc
@@ -28,10 +28,12 @@ SerialServiceImpl::~SerialServiceImpl() {
// static
void SerialServiceImpl::Create(
scoped_refptr<base::MessageLoopProxy> io_message_loop,
+ scoped_refptr<base::MessageLoopProxy> ui_message_loop,
mojo::InterfaceRequest<serial::SerialService> request) {
mojo::BindToRequest(new SerialServiceImpl(new SerialConnectionFactory(
base::Bind(SerialIoHandler::Create,
- base::MessageLoopProxy::current()),
+ base::MessageLoopProxy::current(),
+ ui_message_loop),
io_message_loop)),
&request);
}
@@ -40,11 +42,13 @@ void SerialServiceImpl::Create(
void SerialServiceImpl::CreateOnMessageLoop(
scoped_refptr<base::MessageLoopProxy> message_loop,
scoped_refptr<base::MessageLoopProxy> io_message_loop,
+ scoped_refptr<base::MessageLoopProxy> ui_message_loop,
mojo::InterfaceRequest<serial::SerialService> request) {
- message_loop->PostTask(
- FROM_HERE,
- base::Bind(
- &SerialServiceImpl::Create, io_message_loop, base::Passed(&request)));
+ message_loop->PostTask(FROM_HERE,
+ base::Bind(&SerialServiceImpl::Create,
+ io_message_loop,
+ ui_message_loop,
+ base::Passed(&request)));
}
void SerialServiceImpl::GetDevices(
« no previous file with comments | « device/serial/serial_service_impl.h ('k') | device/serial/serial_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698