Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Unified Diff: chrome/renderer/media/chrome_webrtc_log_message_delegate.cc

Issue 1123733002: [chrome/renderer/media] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nit Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/media/chrome_webrtc_log_message_delegate.cc
diff --git a/chrome/renderer/media/chrome_webrtc_log_message_delegate.cc b/chrome/renderer/media/chrome_webrtc_log_message_delegate.cc
index c2d463431f3c78e80fd75d5288897e8d45ceb20b..963cbdc8630ffbcad732642ccca39fecbbf8c41f 100644
--- a/chrome/renderer/media/chrome_webrtc_log_message_delegate.cc
+++ b/chrome/renderer/media/chrome_webrtc_log_message_delegate.cc
@@ -5,14 +5,14 @@
#include "chrome/renderer/media/chrome_webrtc_log_message_delegate.h"
#include "base/logging.h"
-#include "base/message_loop/message_loop_proxy.h"
+#include "base/single_thread_task_runner.h"
#include "chrome/common/partial_circular_buffer.h"
#include "chrome/renderer/media/webrtc_logging_message_filter.h"
ChromeWebRtcLogMessageDelegate::ChromeWebRtcLogMessageDelegate(
- const scoped_refptr<base::MessageLoopProxy>& io_message_loop,
+ const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner,
WebRtcLoggingMessageFilter* message_filter)
- : io_message_loop_(io_message_loop),
+ : io_task_runner_(io_task_runner),
logging_started_(false),
message_filter_(message_filter) {
content::InitWebRtcLoggingDelegate(this);
@@ -25,7 +25,7 @@ ChromeWebRtcLogMessageDelegate::~ChromeWebRtcLogMessageDelegate() {
void ChromeWebRtcLogMessageDelegate::LogMessage(const std::string& message) {
WebRtcLoggingMessageData data(base::Time::Now(), message);
- io_message_loop_->PostTask(
+ io_task_runner_->PostTask(
FROM_HERE, base::Bind(
&ChromeWebRtcLogMessageDelegate::LogMessageOnIOThread,
base::Unretained(this),
@@ -50,7 +50,7 @@ void ChromeWebRtcLogMessageDelegate::LogMessageOnIOThread(
base::TimeDelta::FromMilliseconds(100)) {
SendLogBuffer();
} else {
- io_message_loop_->PostDelayedTask(
+ io_task_runner_->PostDelayedTask(
FROM_HERE,
base::Bind(&ChromeWebRtcLogMessageDelegate::SendLogBuffer,
base::Unretained(this)),
« no previous file with comments | « chrome/renderer/media/chrome_webrtc_log_message_delegate.h ('k') | chrome/renderer/media/mock_webrtc_logging_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698