[Code Health] Replace calls to AbandonAndStop by Stop in net/.
Part of a series of CLs to remove calls to deprecated function AbandonAndStop and replace is by Stop instead. Bug: 40202541 Change-Id: I3d916951350a1110308b2a55517fcbfca5dd0735 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5971216 Auto-Submit: Alex Attar <aattar@google.com> Reviewed-by: Eric Orth <ericorth@chromium.org> Commit-Queue: Eric Orth <ericorth@chromium.org> Cr-Commit-Position: refs/heads/main@{#1374766}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
ca0abc0056
commit
6f4338eda1
net
@ -625,7 +625,7 @@ void SimpleIndex::WriteToDisk(IndexWriteToDiskReason reason) {
|
||||
return;
|
||||
|
||||
// Cancel any pending writes since we are about to write to disk now.
|
||||
write_to_disk_timer_.AbandonAndStop();
|
||||
write_to_disk_timer_.Stop();
|
||||
|
||||
base::OnceClosure after_write;
|
||||
if (cleanup_tracker_) {
|
||||
|
@ -229,7 +229,7 @@ void DnsConfigService::OnTimeout() {
|
||||
}
|
||||
|
||||
void DnsConfigService::OnCompleteConfig() {
|
||||
timer_.AbandonAndStop();
|
||||
timer_.Stop();
|
||||
if (!need_update_)
|
||||
return;
|
||||
need_update_ = false;
|
||||
|
Reference in New Issue
Block a user