Commit 32a2810c authored by Xida Chen's avatar Xida Chen Committed by Commit Bot

Convert base::Bind in chrome/browser/banners/

This Cl converts base::Bind to base::BindRepeating in banners/

This is a code health CL, no behavior change.

Bug: 1007635
Change-Id: I52576f02d18bd51171c6b0d43a38f73ba0ada95e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2273485
Auto-Submit: Xida Chen <xidachen@chromium.org>
Commit-Queue: Dominick Ng <dominickn@chromium.org>
Reviewed-by: default avatarDominick Ng <dominickn@chromium.org>
Cr-Commit-Position: refs/heads/master@{#783788}
parent 3a675dfc
...@@ -222,8 +222,8 @@ void AppBannerManagerAndroid::ShowBannerUi(WebappInstallSource install_source) { ...@@ -222,8 +222,8 @@ void AppBannerManagerAndroid::ShowBannerUi(WebappInstallSource install_source) {
bool was_shown = AddToHomescreenCoordinator::ShowForAppBanner( bool was_shown = AddToHomescreenCoordinator::ShowForAppBanner(
weak_factory_.GetWeakPtr(), std::move(a2hs_params), weak_factory_.GetWeakPtr(), std::move(a2hs_params),
base::Bind(&AppBannerManagerAndroid::RecordEventForAppBanner, base::BindRepeating(&AppBannerManagerAndroid::RecordEventForAppBanner,
weak_factory_.GetWeakPtr())); weak_factory_.GetWeakPtr()));
// If we are installing from the ambient badge, it will remove itself. // If we are installing from the ambient badge, it will remove itself.
if (install_source != WebappInstallSource::AMBIENT_BADGE_CUSTOM_TAB && if (install_source != WebappInstallSource::AMBIENT_BADGE_CUSTOM_TAB &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment