Commit ab96f1f4 authored by Sylvain Defresne's avatar Sylvain Defresne Committed by Commit Bot

Convert third_party/libaddressinput/chromium away from base::Bind/base::Callback

base::Bind/base::Callback are deprecated in favor of either
base::BindOnce/base::OnceCallback or base::BindRepeating/
base::RepeatingCallback (depending on whether the callback
is invoked once or multiple time).

Convert all uses of base::Bind/base::Callback in
third_party/libaddressinput/chromium to the recommended
methods/types.

Bug: 1007841
Change-Id: Ia0f9f50372e21f3207fbbd29d52ec7465e46663f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1831875
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Dominic Battré <battre@chromium.org>
Auto-Submit: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: default avatarDominic Battré <battre@chromium.org>
Cr-Commit-Position: refs/heads/master@{#701519}
parent 443491f4
...@@ -183,8 +183,9 @@ void AddressValidator::RulesLoaded(bool success, ...@@ -183,8 +183,9 @@ void AddressValidator::RulesLoaded(bool success,
return; return;
base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
FROM_HERE, base::Bind(&AddressValidator::RetryLoadRules, FROM_HERE,
weak_factory_.GetWeakPtr(), region_code), base::BindOnce(&AddressValidator::RetryLoadRules,
weak_factory_.GetWeakPtr(), region_code),
GetBaseRetryPeriod() * pow(2, attempts_number_[region_code]++)); GetBaseRetryPeriod() * pow(2, attempts_number_[region_code]++));
} }
......
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