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

Unified Diff: mojo/public/dart/src/data_pipe.dart

Issue 996923003: Dart: Better handle leak checks. close() is async. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix regexes Created 5 years, 9 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: mojo/public/dart/src/data_pipe.dart
diff --git a/mojo/public/dart/src/data_pipe.dart b/mojo/public/dart/src/data_pipe.dart
index 0335cceb91556c3fe002b3e72cd0d438a01dd5dc..7f1666d319001456bf48aacfef9535dc192bc5d8 100644
--- a/mojo/public/dart/src/data_pipe.dart
+++ b/mojo/public/dart/src/data_pipe.dart
@@ -41,7 +41,7 @@ class MojoDataPipeProducer {
int write(ByteData data, [int numBytes = -1, int flags = 0]) {
if (handle == null) {
status = MojoResult.INVALID_ARGUMENT;
- return status;
+ return 0;
}
int data_numBytes = (numBytes == -1) ? data.lengthInBytes : numBytes;
@@ -49,7 +49,7 @@ class MojoDataPipeProducer {
handle.h, data, data_numBytes, flags);
if (result == null) {
status = MojoResult.INVALID_ARGUMENT;
- return status;
+ return 0;
}
assert((result is List) && (result.length == 2));

Powered by Google App Engine
This is Rietveld 408576698