Commit 2d91d0cc authored by Chris Mumford's avatar Chris Mumford Committed by Commit Bot

media: using base::BindRepating with RepeatingTimer.

base::RepeatingTimer::Start explicitly requires a RepeatingTimer.

TBR=miu@chromium.org

Bug: 1007810
Change-Id: Iac362b7f0f806c416551af44a233ba6df72ae3d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1880462Reviewed-by: default avatarChris Mumford <cmumford@google.com>
Commit-Queue: Chris Mumford <cmumford@google.com>
Cr-Commit-Position: refs/heads/master@{#714029}
parent da07f633
...@@ -188,9 +188,9 @@ void Receiver::ScheduleMediaTimeUpdates() { ...@@ -188,9 +188,9 @@ void Receiver::ScheduleMediaTimeUpdates() {
if (time_update_timer_.IsRunning()) if (time_update_timer_.IsRunning())
return; return;
SendMediaTimeUpdate(); SendMediaTimeUpdate();
time_update_timer_.Start( time_update_timer_.Start(FROM_HERE, kTimeUpdateInterval,
FROM_HERE, kTimeUpdateInterval, base::BindRepeating(&Receiver::SendMediaTimeUpdate,
base::Bind(&Receiver::SendMediaTimeUpdate, weak_factory_.GetWeakPtr())); weak_factory_.GetWeakPtr()));
} }
void Receiver::SetVolume(std::unique_ptr<pb::RpcMessage> message) { void Receiver::SetVolume(std::unique_ptr<pb::RpcMessage> message) {
......
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