Bug 1486659 - p1: conform SharedMemory.describeContents() to Android API spec. r=snorp
authorJohn Lin <jolin@mozilla.com>
Fri, 14 Dec 2018 21:34:09 +0000
changeset 510955 f491ebcda0760ef463721de61a9946b796d855d7
parent 510954 4700e46a32dd4f962f8a69a4da2b8a60b49bf637
child 510956 6c89aae076dd9796a916d6b50611a7b2a7ee5d05
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssnorp
bugs1486659
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1486659 - p1: conform SharedMemory.describeContents() to Android API spec. r=snorp Differential Revision: https://phabricator.services.mozilla.com/D11936
mobile/android/geckoview/src/main/java/org/mozilla/gecko/mozglue/SharedMemory.java
--- a/mobile/android/geckoview/src/main/java/org/mozilla/gecko/mozglue/SharedMemory.java
+++ b/mobile/android/geckoview/src/main/java/org/mozilla/gecko/mozglue/SharedMemory.java
@@ -50,17 +50,17 @@ public class SharedMemory implements Par
         @Override
         public SharedMemory[] newArray(int size) {
             return new SharedMemory[size];
         }
     };
 
     @Override
     public int describeContents() {
-        return 0;
+        return CONTENTS_FILE_DESCRIPTOR;
     }
 
     @Override
     public void writeToParcel(Parcel dest, int flags) {
         // We don't want ParcelFileDescriptor.writeToParcel() to close the fd.
         dest.writeFileDescriptor(mDescriptor.getFileDescriptor());
         dest.writeInt(mSize);
         dest.writeInt(mId);