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

Unified Diff: mojo/android/system/src/org/chromium/mojo/system/impl/MessagePipeHandleImpl.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/MessagePipeHandleImpl.java
diff --git a/mojo/android/system/src/org/chromium/mojo/system/impl/MessagePipeHandleImpl.java b/mojo/android/system/src/org/chromium/mojo/system/impl/MessagePipeHandleImpl.java
index 04d2776b5a854014336e385becaa273321f63859..345a5588cd73b172f2f1264080d0d3537c53c59b 100644
--- a/mojo/android/system/src/org/chromium/mojo/system/impl/MessagePipeHandleImpl.java
+++ b/mojo/android/system/src/org/chromium/mojo/system/impl/MessagePipeHandleImpl.java
@@ -25,11 +25,19 @@ class MessagePipeHandleImpl extends HandleBase implements MessagePipeHandle {
/**
* @see HandleBase#HandleBase(HandleBase)
*/
- MessagePipeHandleImpl(UntypedHandleImpl handle) {
+ MessagePipeHandleImpl(HandleBase handle) {
super(handle);
}
/**
+ * @see org.chromium.mojo.system.MessagePipeHandle#pass()
+ */
+ @Override
+ public MessagePipeHandle pass() {
+ return new MessagePipeHandleImpl(this);
+ }
+
+ /**
* @see MessagePipeHandle#writeMessage(ByteBuffer, List, WriteFlags)
*/
@Override

Powered by Google App Engine
This is Rietveld 408576698