Skip to content

Commit

Permalink
[M116] Use weak_ptr in ambient badge GetClassificationResult callback
Browse files Browse the repository at this point in the history
(cherry picked from commit 75b079d)

Bug: 1458010
Change-Id: Ibb7b3cd93dd3c066ba893a772e4b40e93a79c774
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4666080
Auto-Submit: Ella Ge <eirage@chromium.org>
Reviewed-by: Siddhartha S <ssid@chromium.org>
Commit-Queue: Siddhartha S <ssid@chromium.org>
Cr-Original-Commit-Position: refs/heads/main@{#1165729}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4663777
Cr-Commit-Position: refs/branch-heads/5845@{#344}
Cr-Branched-From: 5a5dff6-refs/heads/main@{#1160321}
  • Loading branch information
EiraGe authored and Chromium LUCI CQ committed Jul 6, 2023
1 parent 558175d commit 7f6704c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ void AmbientBadgeManager::MaybeShowAmbientBadgeSmart(
segmentation_platform::kWebAppInstallationPromoKey, prediction_options,
input_context,
base::BindOnce(&AmbientBadgeManager::OnGotClassificationResult,
base::Unretained(this)));
weak_factory_.GetWeakPtr()));
}

void AmbientBadgeManager::OnGotClassificationResult(
Expand Down

0 comments on commit 7f6704c

Please sign in to comment.