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

Unified Diff: device/serial/data_source_sender.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_source_sender.h ('k') | device/serial/data_source_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/data_source_sender.cc
diff --git a/device/serial/data_source_sender.cc b/device/serial/data_source_sender.cc
index af2ddcb40cf6e37ad2e1b90c07027c562593aaf6..7dd32b1d5c91621e6fc86232c66db03be3c400c9 100644
--- a/device/serial/data_source_sender.cc
+++ b/device/serial/data_source_sender.cc
@@ -6,6 +6,7 @@
#include <algorithm>
#include <limits>
+#include <memory>
#include <utility>
#include "base/bind.h"
@@ -186,7 +187,7 @@ void DataSourceSender::PendingSend::GetData(uint32_t num_bytes) {
DCHECK(!buffer_in_use_);
buffer_in_use_ = true;
data_.resize(num_bytes);
- callback_.Run(scoped_ptr<WritableBuffer>(
+ callback_.Run(std::unique_ptr<WritableBuffer>(
new Buffer(sender_, this, &data_[0], num_bytes)));
}
« no previous file with comments | « device/serial/data_source_sender.h ('k') | device/serial/data_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698