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

Unified Diff: device/serial/serial_connection.cc

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 years, 11 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/buffer.cc ('k') | device/serial/serial_connection_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_connection.cc
diff --git a/device/serial/serial_connection.cc b/device/serial/serial_connection.cc
index 249b892b244859f7e6b8493ed30028b55179fd0f..9b88c9d0e5da9a3550068c5bdc53066140a0e2ba 100644
--- a/device/serial/serial_connection.cc
+++ b/device/serial/serial_connection.cc
@@ -35,8 +35,8 @@ SerialConnection::SerialConnection(
SerialConnection::~SerialConnection() {
receiver_->ShutDown();
sender_->ShutDown();
- io_handler_->CancelRead(serial::RECEIVE_ERROR_DISCONNECTED);
- io_handler_->CancelWrite(serial::SEND_ERROR_DISCONNECTED);
+ io_handler_->CancelRead(serial::ReceiveError::DISCONNECTED);
+ io_handler_->CancelWrite(serial::SendError::DISCONNECTED);
}
void SerialConnection::GetInfo(
@@ -47,7 +47,7 @@ void SerialConnection::GetInfo(
void SerialConnection::SetOptions(serial::ConnectionOptionsPtr options,
const mojo::Callback<void(bool)>& callback) {
callback.Run(io_handler_->ConfigurePort(*options));
- io_handler_->CancelRead(device::serial::RECEIVE_ERROR_NONE);
+ io_handler_->CancelRead(device::serial::ReceiveError::NONE);
}
void SerialConnection::SetControlSignals(
« no previous file with comments | « device/serial/buffer.cc ('k') | device/serial/serial_connection_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698