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

Unified Diff: chrome/renderer/media/mock_webrtc_logging_message_filter.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/mock_webrtc_logging_message_filter.cc
diff --git a/chrome/renderer/media/mock_webrtc_logging_message_filter.cc b/chrome/renderer/media/mock_webrtc_logging_message_filter.cc
index ee0d12c6304c925e46d2b435c985810bc7c34e59..e5104a6344d1710dd28b1859c04ad335e79f63ec 100644
--- a/chrome/renderer/media/mock_webrtc_logging_message_filter.cc
+++ b/chrome/renderer/media/mock_webrtc_logging_message_filter.cc
@@ -5,11 +5,11 @@
#include "chrome/renderer/media/mock_webrtc_logging_message_filter.h"
#include "base/logging.h"
-#include "base/message_loop/message_loop_proxy.h"
+#include "base/single_thread_task_runner.h"
MockWebRtcLoggingMessageFilter::MockWebRtcLoggingMessageFilter(
- const scoped_refptr<base::MessageLoopProxy>& io_message_loop)
- : WebRtcLoggingMessageFilter(io_message_loop),
+ const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner)
+ : WebRtcLoggingMessageFilter(io_task_runner),
logging_stopped_(false) {
}
@@ -18,12 +18,12 @@ MockWebRtcLoggingMessageFilter::~MockWebRtcLoggingMessageFilter() {
void MockWebRtcLoggingMessageFilter::AddLogMessages(
const std::vector<WebRtcLoggingMessageData>& messages) {
- CHECK(io_message_loop_->BelongsToCurrentThread());
+ CHECK(io_task_runner_->BelongsToCurrentThread());
for (size_t i = 0; i < messages.size(); ++i)
log_buffer_ += messages[i].message + "\n";
}
void MockWebRtcLoggingMessageFilter::LoggingStopped() {
- CHECK(io_message_loop_->BelongsToCurrentThread());
+ CHECK(io_task_runner_->BelongsToCurrentThread());
logging_stopped_ = true;
}
« no previous file with comments | « chrome/renderer/media/mock_webrtc_logging_message_filter.h ('k') | chrome/renderer/media/webrtc_logging_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698