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

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

Issue 325953006: Add pass operation on handles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix findbugs issue Created 6 years, 6 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/DataPipeConsumerHandleImpl.java
diff --git a/mojo/android/system/src/org/chromium/mojo/system/impl/DataPipeConsumerHandleImpl.java b/mojo/android/system/src/org/chromium/mojo/system/impl/DataPipeConsumerHandleImpl.java
index fa6a5c1613d614c05218afeb59791231c596e606..ab6f1ea659b77c738d66e92d1d7986d171e09ec4 100644
--- a/mojo/android/system/src/org/chromium/mojo/system/impl/DataPipeConsumerHandleImpl.java
+++ b/mojo/android/system/src/org/chromium/mojo/system/impl/DataPipeConsumerHandleImpl.java
@@ -24,11 +24,19 @@ class DataPipeConsumerHandleImpl extends HandleBase implements ConsumerHandle {
/**
* @see HandleBase#HandleBase(HandleBase)
*/
- DataPipeConsumerHandleImpl(UntypedHandleImpl other) {
+ DataPipeConsumerHandleImpl(HandleBase other) {
super(other);
}
/**
+ * @see org.chromium.mojo.system.Handle#pass()
+ */
+ @Override
+ public ConsumerHandle pass() {
+ return new DataPipeConsumerHandleImpl(this);
+ }
+
+ /**
* @see ConsumerHandle#discardData(int, ReadFlags)
*/
@Override

Powered by Google App Engine
This is Rietveld 408576698