Skip to content

Commit

Permalink
Convert base::Bind and base::Callback in components/component_updater…
Browse files Browse the repository at this point in the history
… to Once/Repeating

Bug: 1007677
Change-Id: Icb307b143a5776768d7b23e3c2d925b417d0dafa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2040672
Reviewed-by: Joshua Pawlicki <waffles@chromium.org>
Commit-Queue: Ayu Ishii <ayui@chromium.org>
Cr-Commit-Position: refs/heads/master@{#739024}
  • Loading branch information
ayuishii authored and Commit Bot committed Feb 6, 2020
1 parent b863946 commit 9f343a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/component_updater/component_updater_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ void CrxUpdateService::Start() {
scheduler_->Schedule(
base::TimeDelta::FromSeconds(config_->InitialDelay()),
base::TimeDelta::FromSeconds(config_->NextCheckDelay()),
base::Bind(base::IgnoreResult(&CrxUpdateService::CheckForUpdates),
base::Unretained(this)),
base::BindRepeating(
base::IgnoreResult(&CrxUpdateService::CheckForUpdates),
base::Unretained(this)),
base::DoNothing());
}

Expand Down

0 comments on commit 9f343a4

Please sign in to comment.