Description[Home] Use ChromeActivity from init() when creating sheet content
We have several crash reports of NPEs when trying to get the activity
from the current tab while during BottomSheetContent creation. The
current tab currently shouldn't be null when the BottomSheet is opened,
but it's likely that the current tab will soon be null (NTP). Hold on to
a reference to the ChromeActivity passed in to
BottomSheetContentController#init() for use in creating
BottomSheetContents. The BottomSheet is per activity so the activity will
never change.
BUG=711098
Review-Url: https://codereview.chromium.org/2843203002
Cr-Commit-Position: refs/heads/master@{#467507}
Committed: https://chromium.googlesource.com/chromium/src/+/0c5dce88667d9ceeed1d90daa8485aa6c6009176
Patch Set 1 #
Messages
Total messages: 11 (7 generated)
|