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

Unified Diff: device/serial/data_sink_receiver.cc

Issue 562563002: Make some fields non-nullable in serial.mojom and data_stream.mojom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | device/serial/data_source_sender.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 7e3834e4c504f6698494d27da0203d534c4c23d4..cadc9e3de6e6e4aef52bf1b23793902f1979adf2 100644
--- a/device/serial/data_sink_receiver.cc
+++ b/device/serial/data_sink_receiver.cc
@@ -89,7 +89,7 @@ DataSinkReceiver::~DataSinkReceiver() {
}
void DataSinkReceiver::Init(mojo::ScopedDataPipeConsumerHandle handle) {
- if (!handle.is_valid() || handle_.is_valid()) {
+ if (handle_.is_valid()) {
DispatchFatalError();
return;
}
« no previous file with comments | « no previous file | device/serial/data_source_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698