Commit e9b308fd authored by Yannic Bonenberger's avatar Yannic Bonenberger Committed by Commit Bot

Apply base_bind_rewriters to //net/log

*** Note: There is no behavior change from this patch. ***

This CL replaces calls to base::{Bind,BindRepeating} with calls to
base::BindOnce, and removes calls to base::AdaptCallbackForRepeating
when the returned base::RepeatingCallback is immediately converted
to a base::OnceCallback.

This CL was uploaded by git cl split.

R=mmenke@chromium.org

Bug: 714018
Change-Id: I8d6b6cea471f97bbf0a4aef8ea1882fc6c5d78bd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1778768Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Commit-Queue: Matt Menke <mmenke@chromium.org>
Commit-Queue: Yannic Bonenberger <contact@yannic-bonenberger.com>
Auto-Submit: Yannic Bonenberger <contact@yannic-bonenberger.com>
Cr-Commit-Position: refs/heads/master@{#692311}
parent 949bd451
...@@ -386,9 +386,9 @@ void FileNetLogObserver::StopObserving(std::unique_ptr<base::Value> polled_data, ...@@ -386,9 +386,9 @@ void FileNetLogObserver::StopObserving(std::unique_ptr<base::Value> polled_data,
net_log()->RemoveObserver(this); net_log()->RemoveObserver(this);
base::OnceClosure bound_flush_then_stop = base::OnceClosure bound_flush_then_stop =
base::Bind(&FileNetLogObserver::FileWriter::FlushThenStop, base::BindOnce(&FileNetLogObserver::FileWriter::FlushThenStop,
base::Unretained(file_writer_.get()), write_queue_, base::Unretained(file_writer_.get()), write_queue_,
base::Passed(&polled_data)); std::move(polled_data));
// Note that PostTaskAndReply() requires a non-null closure. // Note that PostTaskAndReply() requires a non-null closure.
if (!optional_callback.is_null()) { if (!optional_callback.is_null()) {
......
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