Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Issue 2843203002: [Home] Use ChromeActivity from init() when creating sheet content (Closed)

Created:
3 years, 8 months ago by Theresa
Modified:
3 years, 8 months ago
Reviewers:
mdjones
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -11 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheetContentController.java View 5 chunks +11 lines, -11 lines 0 comments Download

Messages

Total messages: 11 (7 generated)
Theresa
ptal
3 years, 8 months ago (2017-04-26 21:47:50 UTC) #3
mdjones
lgtm
3 years, 8 months ago (2017-04-26 22:23:46 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2843203002/1
3 years, 8 months ago (2017-04-26 22:34:48 UTC) #8
commit-bot: I haz the power
3 years, 8 months ago (2017-04-26 23:31:13 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/0c5dce88667d9ceeed1d90daa848...

Powered by Google App Engine
This is Rietveld 408576698