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

Unified Diff: device/serial/serial_io_handler_win.h

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_io_handler.cc ('k') | device/serial/serial_service_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_io_handler_win.h
diff --git a/device/serial/serial_io_handler_win.h b/device/serial/serial_io_handler_win.h
index 88439bf9b302907f2df3ed832b272e2bed8ca7db..67cac0a973ac0d3797bb516cc7d3c7b0663e4287 100644
--- a/device/serial/serial_io_handler_win.h
+++ b/device/serial/serial_io_handler_win.h
@@ -5,8 +5,9 @@
#ifndef DEVICE_SERIAL_SERIAL_IO_HANDLER_WIN_H_
#define DEVICE_SERIAL_SERIAL_IO_HANDLER_WIN_H_
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/thread_task_runner_handle.h"
@@ -49,13 +50,13 @@ class SerialIoHandlerWin : public SerialIoHandler,
void OnDeviceRemoved(const std::string& device_path);
// Context used for asynchronous WaitCommEvent calls.
- scoped_ptr<base::MessageLoopForIO::IOContext> comm_context_;
+ std::unique_ptr<base::MessageLoopForIO::IOContext> comm_context_;
// Context used for overlapped reads.
- scoped_ptr<base::MessageLoopForIO::IOContext> read_context_;
+ std::unique_ptr<base::MessageLoopForIO::IOContext> read_context_;
// Context used for overlapped writes.
- scoped_ptr<base::MessageLoopForIO::IOContext> write_context_;
+ std::unique_ptr<base::MessageLoopForIO::IOContext> write_context_;
// Asynchronous event mask state
DWORD event_mask_;
« no previous file with comments | « device/serial/serial_io_handler.cc ('k') | device/serial/serial_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698