Commit 7f02fdb1 authored by Antonio Gomes's avatar Antonio Gomes Committed by Commit Bot

Switch audio_service_audio_processor_proxy.cc away from base::Bind

BUG=704136
R=guidou@chromium.org

Change-Id: Ic0acd94b796f18d40cc806ada0f33813d56d4331
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1949343Reviewed-by: default avatarGuido Urdaneta <guidou@chromium.org>
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Cr-Commit-Position: refs/heads/master@{#722448}
parent 6d5ef36f
......@@ -12,7 +12,6 @@
#include <utility>
#include <vector>
#include "base/bind.h"
#include "base/single_thread_task_runner.h"
#include "base/task/post_task.h"
#include "base/timer/timer.h"
......@@ -20,6 +19,7 @@
#include "third_party/blink/renderer/platform/mediastream/aec_dump_agent_impl.h"
#include "third_party/blink/renderer/platform/scheduler/public/worker_pool.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
namespace blink {
......@@ -119,16 +119,16 @@ void AudioServiceAudioProcessorProxy::RescheduleStatsUpdateTimer(
// Unretained is safe since |this| owns |stats_update_timer_|.
stats_update_timer_.Start(
FROM_HERE, new_interval,
base::BindRepeating(&AudioServiceAudioProcessorProxy::RequestStats,
base::Unretained(this)));
WTF::BindRepeating(&AudioServiceAudioProcessorProxy::RequestStats,
WTF::Unretained(this)));
}
void AudioServiceAudioProcessorProxy::RequestStats() {
DCHECK(main_thread_runner_->BelongsToCurrentThread());
if (processor_controls_) {
processor_controls_->GetStats(
base::BindOnce(&AudioServiceAudioProcessorProxy::UpdateStats,
weak_ptr_factory_.GetWeakPtr()));
WTF::Bind(&AudioServiceAudioProcessorProxy::UpdateStats,
weak_ptr_factory_.GetWeakPtr()));
}
}
......
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