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

Unified Diff: ipc/ipc_channel_reader.cc

Issue 2375663002: Replace MessageLoop::current()->task_runner() with ThreadTaskRunnerHandle::Get(). (Closed)
Patch Set: rebase Created 4 years, 3 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
« no previous file with comments | « device/generic_sensor/platform_sensor_android.cc ('k') | ipc/ipc_channel_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_reader.cc
diff --git a/ipc/ipc_channel_reader.cc b/ipc/ipc_channel_reader.cc
index 9af3696ef6130f0c5b28850f843b9e2ffa425e37..e5edb9c147d53f0b93127656efd24e0e148d334c 100644
--- a/ipc/ipc_channel_reader.cc
+++ b/ipc/ipc_channel_reader.cc
@@ -8,7 +8,9 @@
#include <algorithm>
+#include "base/logging.h"
#include "base/message_loop/message_loop.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "ipc/ipc_listener.h"
#include "ipc/ipc_logging.h"
#include "ipc/ipc_message.h"
@@ -322,8 +324,8 @@ void ChannelReader::ReceivedBrokerableAttachmentWithId(
void ChannelReader::StartObservingAttachmentBroker() {
#if USE_ATTACHMENT_BROKER
- GetAttachmentBroker()->AddObserver(
- this, base::MessageLoopForIO::current()->task_runner());
+ DCHECK(base::MessageLoopForIO::IsCurrent());
+ GetAttachmentBroker()->AddObserver(this, base::ThreadTaskRunnerHandle::Get());
#endif // USE_ATTACHMENT_BROKER
}
« no previous file with comments | « device/generic_sensor/platform_sensor_android.cc ('k') | ipc/ipc_channel_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698