Commit 30b0d72f authored by Ayu Ishii's avatar Ayu Ishii Committed by Commit Bot

Convert base::Bind and base::Callback in components/upload-list to Once/Repeating

Bug: 1007749
Change-Id: Ifd172b7913f2f50c5513c446db7e14731f965039
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1941055Reviewed-by: default avatarMark Mentovai <mark@chromium.org>
Commit-Queue: Ayu Ishii <ayui@chromium.org>
Cr-Commit-Position: refs/heads/master@{#720607}
parent be9cff32
...@@ -65,8 +65,8 @@ void UploadList::Load(base::OnceClosure callback) { ...@@ -65,8 +65,8 @@ void UploadList::Load(base::OnceClosure callback) {
load_callback_ = std::move(callback); load_callback_ = std::move(callback);
base::PostTaskAndReplyWithResult( base::PostTaskAndReplyWithResult(
FROM_HERE, kLoadingTaskTraits, FROM_HERE, kLoadingTaskTraits,
base::Bind(&UploadList::LoadUploadList, this), base::BindOnce(&UploadList::LoadUploadList, this),
base::Bind(&UploadList::OnLoadComplete, this)); base::BindOnce(&UploadList::OnLoadComplete, this));
} }
void UploadList::Clear(const base::Time& begin, void UploadList::Clear(const base::Time& begin,
......
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