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

Unified Diff: device/serial/serial_io_handler_win.cc

Issue 1440593004: Make operators on scoped_ptr match the ones defined for std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrequals: followupfix-after-rebase Created 5 years, 1 month 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
Index: device/serial/serial_io_handler_win.cc
diff --git a/device/serial/serial_io_handler_win.cc b/device/serial/serial_io_handler_win.cc
index cd1045107fe746e285d1bf422297236228339638..56fe93bbbf527589e0859171ce2627c3d5dffb61 100644
--- a/device/serial/serial_io_handler_win.cc
+++ b/device/serial/serial_io_handler_win.cc
@@ -282,7 +282,7 @@ void SerialIoHandlerWin::OnIOCompleted(
DWORD bytes_transferred,
DWORD error) {
DCHECK(CalledOnValidThread());
- if (context == comm_context_) {
+ if (context == comm_context_.get()) {
DWORD errors;
COMSTAT status;
if (!ClearCommError(file().GetPlatformFile(), &errors, &status) ||
@@ -318,7 +318,7 @@ void SerialIoHandlerWin::OnIOCompleted(
ReadCompleted(0, serial::RECEIVE_ERROR_SYSTEM_ERROR);
}
}
- } else if (context == read_context_) {
+ } else if (context == read_context_.get()) {
if (read_canceled()) {
ReadCompleted(bytes_transferred, read_cancel_reason());
} else if (error != ERROR_SUCCESS && error != ERROR_OPERATION_ABORTED) {
@@ -329,7 +329,7 @@ void SerialIoHandlerWin::OnIOCompleted(
? serial::RECEIVE_ERROR_NONE
: serial::RECEIVE_ERROR_SYSTEM_ERROR);
}
- } else if (context == write_context_) {
+ } else if (context == write_context_.get()) {
DCHECK(pending_write_buffer());
if (write_canceled()) {
WriteCompleted(0, write_cancel_reason());
« no previous file with comments | « content/common/discardable_shared_memory_heap.cc ('k') | ios/chrome/browser/updatable_config/updatable_config_base.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698