Commit aad0f7fa authored by Hajime Hoshi's avatar Hajime Hoshi Committed by Commit Bot

media: Remove SequencedTaskRunnerHandle::Get() usages in UserMediaClientImpl

This is part of efforts to replace base::ThreadTaskRunnerHandle::Get()
and SequencedTaskRunnerHandle::Get() with other appropriate task runners
in the renderer.

Bug: 827065
Change-Id: I4a062ac1db4631215d1ec58bd5d79cc3acc5ba33
Reviewed-on: https://chromium-review.googlesource.com/987833Reviewed-by: default avatarYuri Wiitala <miu@chromium.org>
Commit-Queue: Hajime Hoshi <hajimehoshi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547409}
parent c02389e2
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include "base/memory/ptr_util.h" #include "base/memory/ptr_util.h"
#include "base/strings/stringprintf.h" #include "base/strings/stringprintf.h"
#include "base/task_runner.h" #include "base/task_runner.h"
#include "base/threading/sequenced_task_runner_handle.h"
#include "content/public/renderer/render_frame.h" #include "content/public/renderer/render_frame.h"
#include "content/renderer/media/stream/apply_constraints_processor.h" #include "content/renderer/media/stream/apply_constraints_processor.h"
#include "content/renderer/media/stream/media_stream_device_observer.h" #include "content/renderer/media/stream/media_stream_device_observer.h"
...@@ -217,10 +216,12 @@ void UserMediaClientImpl::CurrentRequestCompleted() { ...@@ -217,10 +216,12 @@ void UserMediaClientImpl::CurrentRequestCompleted() {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
is_processing_request_ = false; is_processing_request_ = false;
if (!pending_request_infos_.empty()) { if (!pending_request_infos_.empty()) {
base::SequencedTaskRunnerHandle::Get()->PostTask( render_frame()
FROM_HERE, ->GetTaskRunner(blink::TaskType::kInternalMedia)
base::BindOnce(&UserMediaClientImpl::MaybeProcessNextRequestInfo, ->PostTask(
weak_factory_.GetWeakPtr())); FROM_HERE,
base::BindOnce(&UserMediaClientImpl::MaybeProcessNextRequestInfo,
weak_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