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

Unified Diff: third_party/mojo/src/mojo/public/dart/src/message_pipe.dart

Issue 877993004: Revert "Update mojo sdk to rev 8d45c89c30b230843c5bd6dd0693a555750946c0" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
Index: third_party/mojo/src/mojo/public/dart/src/message_pipe.dart
diff --git a/third_party/mojo/src/mojo/public/dart/src/message_pipe.dart b/third_party/mojo/src/mojo/public/dart/src/message_pipe.dart
index 7733d33a28a99ebf8388973bdcc9140c5730ce73..325be42f9371323ea24d03510d05c29dc2ee0340 100644
--- a/third_party/mojo/src/mojo/public/dart/src/message_pipe.dart
+++ b/third_party/mojo/src/mojo/public/dart/src/message_pipe.dart
@@ -49,11 +49,9 @@ class MojoMessagePipeEndpoint {
return status;
}
- int dataLengthInBytes = (data == null) ? 0 : data.lengthInBytes;
-
// If numBytes has the default value, use the full length of the data.
- int dataNumBytes = (numBytes == -1) ? dataLengthInBytes : numBytes;
- if (dataNumBytes > dataLengthInBytes) {
+ int dataNumBytes = (numBytes == -1) ? data.lengthInBytes : numBytes;
+ if (dataNumBytes > data.lengthInBytes) {
status = MojoResult.INVALID_ARGUMENT;
return status;
}
« no previous file with comments | « third_party/mojo/src/mojo/public/dart/src/message.dart ('k') | third_party/mojo/src/mojo/public/dart/src/proxy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698