[Clank][BrowsingDataModel] Destroy old model asynchronously
Due to slow model build, sometimes JNI framework hangs/crashes due to attempting to destroy a model object as we're creating a new one. This CL works around this issue by keeping a reference of the old model and posting the destroy task so it doesn't conflict with the new model creation callback. Fixed: 370355422 Bug: b:254415177 Change-Id: I925ed5e649f02a894fefcccc4c4d6ba72e6d770e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5998871 Reviewed-by:Christian Dullweber <dullweber@chromium.org> Auto-Submit: Mariam Ali <alimariam@google.com> Commit-Queue: Mariam Ali <alimariam@google.com> Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com> Cr-Commit-Position: refs/heads/main@{#1378947}
Please register or sign in to comment