BottomSheetObservers are never removed |
||
Issue descriptionMemory leak? SuggestionsBottomSheetContent never removes its BottomSheet observer, but since we should not destroy and recreate it it might not be an issue. However the other BottomSheetContents don't do it either, while they get destroyed every time we close the bottom sheet, and there is no BottomSheet#removeObserver()
,
Apr 28 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/305e5224d9e9b11a609e17ca11866be3a3622ad6 commit 305e5224d9e9b11a609e17ca11866be3a3622ad6 Author: mdjones <mdjones@chromium.org> Date: Fri Apr 28 17:27:18 2017 [Home] Remove BottomSheetObservers that are no longer used Previously, all observers of the bottom sheet had a life cycle that matched the bottom sheet, so it wasn't necessary to remove the. The suggestions content, however, does have the potential to be destroyed. This change adds a removeObserver(...) method to the bottom sheet to handle this case. BUG= 715979 Review-Url: https://codereview.chromium.org/2844993003 Cr-Commit-Position: refs/heads/master@{#468043} [modify] https://crrev.com/305e5224d9e9b11a609e17ca11866be3a3622ad6/chrome/android/java/src/org/chromium/chrome/browser/suggestions/SuggestionsBottomSheetContent.java [modify] https://crrev.com/305e5224d9e9b11a609e17ca11866be3a3622ad6/chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheet.java
,
Apr 28 2017
|
||
►
Sign in to add a comment |
||
Comment 1 by mdjones@chromium.org
, Apr 27 2017Status: Assigned (was: Available)