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

Unified Diff: device/serial/data_sink_receiver.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/data_sink_receiver.h ('k') | device/serial/data_sink_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/data_sink_receiver.cc
diff --git a/device/serial/data_sink_receiver.cc b/device/serial/data_sink_receiver.cc
index e1d2b9c28a3a487f1ca4ed5cb6b94ec997ec6f51..f06816f7df68c2f6cb8c45516cd3061b4caba2cd 100644
--- a/device/serial/data_sink_receiver.cc
+++ b/device/serial/data_sink_receiver.cc
@@ -5,6 +5,7 @@
#include "device/serial/data_sink_receiver.h"
#include <limits>
+#include <memory>
#include <utility>
#include "base/bind.h"
@@ -143,7 +144,7 @@ void DataSinkReceiver::RunReadyCallback() {
new Buffer(this,
pending_data_buffers_.front()->GetData(),
pending_data_buffers_.front()->GetRemainingBytes());
- ready_callback_.Run(scoped_ptr<ReadOnlyBuffer>(buffer_in_use_));
+ ready_callback_.Run(std::unique_ptr<ReadOnlyBuffer>(buffer_in_use_));
}
void DataSinkReceiver::Done(uint32_t bytes_read) {
« no previous file with comments | « device/serial/data_sink_receiver.h ('k') | device/serial/data_sink_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698