Skip to content

Commit

Permalink
[Journeys] Fix crash when initing with null activity
Browse files Browse the repository at this point in the history
This seems to happen if we create the coordinator post-destroy.

(cherry picked from commit 80d1a6a)

Bug: 1366905
Change-Id: Icfdeb9219c59b6620ee3f8ec29727983c4f4b043
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3915271
Commit-Queue: Patrick Noland <pnoland@chromium.org>
Reviewed-by: Matthew Jones <mdjones@chromium.org>
Cr-Original-Commit-Position: refs/heads/main@{#1050651}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3917011
Commit-Queue: Krishna Govind <govind@chromium.org>
Owners-Override: Krishna Govind <govind@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Reviewed-by: Krishna Govind <govind@chromium.org>
Cr-Commit-Position: refs/branch-heads/5304@{chromium#152}
Cr-Branched-From: 5d7b1fc-refs/heads/main@{#1047731}
  • Loading branch information
Patrick Noland authored and Chromium LUCI CQ committed Sep 25, 2022
1 parent ccc2147 commit ebe3a33
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,7 @@ protected IncognitoReauthCoordinatorFactory getIncognitoReauthCoordinatorFactory
}

private void initHistoryClustersCoordinator(Profile profile) {
if (mActivity == null) return;
if (ChromeFeatureList.isEnabled(ChromeFeatureList.HISTORY_JOURNEYS)) {
HistoryClustersDelegate historyClustersDelegate = new HistoryClustersDelegate() {
@Override
Expand Down

0 comments on commit ebe3a33

Please sign in to comment.