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

Unified Diff: device/serial/serial_connection.cc

Issue 1874313002: Convert device to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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_connection.h ('k') | device/serial/serial_connection_unittest.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 9b88c9d0e5da9a3550068c5bdc53066140a0e2ba..27bff5d7b02a52a98df553e39622df9073e9747c 100644
--- a/device/serial/serial_connection.cc
+++ b/device/serial/serial_connection.cc
@@ -69,11 +69,12 @@ void SerialConnection::OnSendCancelled(int32_t error) {
io_handler_->CancelWrite(static_cast<serial::SendError>(error));
}
-void SerialConnection::OnSendPipeReady(scoped_ptr<ReadOnlyBuffer> buffer) {
+void SerialConnection::OnSendPipeReady(std::unique_ptr<ReadOnlyBuffer> buffer) {
io_handler_->Write(std::move(buffer));
}
-void SerialConnection::OnReceivePipeReady(scoped_ptr<WritableBuffer> buffer) {
+void SerialConnection::OnReceivePipeReady(
+ std::unique_ptr<WritableBuffer> buffer) {
io_handler_->Read(std::move(buffer));
}
« no previous file with comments | « device/serial/serial_connection.h ('k') | device/serial/serial_connection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698