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

Unified Diff: mojo/android/system/src/org/chromium/mojo/system/impl/DataPipeProducerHandleImpl.java

Issue 1057213003: Java: Introduce ResultAnd<> and use it. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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/android/system/src/org/chromium/mojo/system/impl/DataPipeProducerHandleImpl.java
diff --git a/mojo/android/system/src/org/chromium/mojo/system/impl/DataPipeProducerHandleImpl.java b/mojo/android/system/src/org/chromium/mojo/system/impl/DataPipeProducerHandleImpl.java
index 1087a592b546b72052ce49bc91fa1e836a123c1f..901f26c02920af10b38c73a2ab40690bd0f28acf 100644
--- a/mojo/android/system/src/org/chromium/mojo/system/impl/DataPipeProducerHandleImpl.java
+++ b/mojo/android/system/src/org/chromium/mojo/system/impl/DataPipeProducerHandleImpl.java
@@ -6,6 +6,7 @@ package org.chromium.mojo.system.impl;
import org.chromium.mojo.system.DataPipe.ProducerHandle;
import org.chromium.mojo.system.DataPipe.WriteFlags;
+import org.chromium.mojo.system.ResultAnd;
import java.nio.ByteBuffer;
@@ -40,7 +41,7 @@ class DataPipeProducerHandleImpl extends HandleBase implements ProducerHandle {
* @see ProducerHandle#writeData(ByteBuffer, WriteFlags)
*/
@Override
- public int writeData(ByteBuffer elements, WriteFlags flags) {
+ public ResultAnd<Integer> writeData(ByteBuffer elements, WriteFlags flags) {
return mCore.writeData(this, elements, flags);
}

Powered by Google App Engine
This is Rietveld 408576698