Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / mojo / android / system / src / org / chromium / mojo / system / impl / HandleBase.java
index f7c3f87..81bfac7 100644 (file)
@@ -94,6 +94,16 @@ abstract class HandleBase implements Handle {
     }
 
     /**
+     * @see Handle#releaseNativeHandle()
+     */
+    @Override
+    public int releaseNativeHandle() {
+        int result = mMojoHandle;
+        mMojoHandle = CoreImpl.INVALID_HANDLE;
+        return result;
+    }
+
+    /**
      * Getter for the native scoped handle.
      *
      * @return the native scoped handle.