Commit e59d8799 authored by Anna Malova's avatar Anna Malova Committed by Commit Bot

Convert NetworkChangeNotifierWin to use OnceCallback.

Bug: 1007815
Change-Id: If2e4b3c5df6fb6b128eb3924040a38c17f256458
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2081429Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Commit-Queue: Anna Malova <amalova@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746842}
parent f56bb0f1
......@@ -273,8 +273,8 @@ void NetworkChangeNotifierWin::WatchForAddressChange() {
// that interval.
if (sequential_failures_ > 0) {
RecomputeCurrentConnectionTypeOnBlockingSequence(
base::Bind(&NetworkChangeNotifierWin::NotifyObservers,
weak_factory_.GetWeakPtr()));
base::BindOnce(&NetworkChangeNotifierWin::NotifyObservers,
weak_factory_.GetWeakPtr()));
}
if (sequential_failures_ < 2000) {
......
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