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

Unified Diff: mojo/android/system/src/org/chromium/mojo/system/impl/SharedBufferHandleImpl.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/SharedBufferHandleImpl.java
diff --git a/mojo/android/system/src/org/chromium/mojo/system/impl/SharedBufferHandleImpl.java b/mojo/android/system/src/org/chromium/mojo/system/impl/SharedBufferHandleImpl.java
index c8cae1a81174f8af55b494a1aebfd1ea239e4487..76ef73945f59a43911a95b477f767723b42d7a20 100644
--- a/mojo/android/system/src/org/chromium/mojo/system/impl/SharedBufferHandleImpl.java
+++ b/mojo/android/system/src/org/chromium/mojo/system/impl/SharedBufferHandleImpl.java
@@ -23,11 +23,19 @@ class SharedBufferHandleImpl extends HandleBase implements SharedBufferHandle {
/**
* @see HandleBase#HandleBase(HandleBase)
*/
- SharedBufferHandleImpl(UntypedHandleImpl handle) {
+ SharedBufferHandleImpl(HandleBase handle) {
super(handle);
}
/**
+ * @see org.chromium.mojo.system.SharedBufferHandle#pass()
+ */
+ @Override
+ public SharedBufferHandle pass() {
+ return new SharedBufferHandleImpl(this);
+ }
+
+ /**
* @see SharedBufferHandle#duplicate(DuplicateOptions)
*/
@Override

Powered by Google App Engine
This is Rietveld 408576698