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

Unified Diff: webrtc/rtc_base/messagequeue.cc

Issue 2979733002: Revert of Delete SignalThread class. (Closed)
Patch Set: Change EXPECT_STATE macro to a function, since it was broken by recent gunit.h change Created 3 years, 5 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 | « webrtc/rtc_base/messagequeue.h ('k') | webrtc/rtc_base/nethelpers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/rtc_base/messagequeue.cc
diff --git a/webrtc/rtc_base/messagequeue.cc b/webrtc/rtc_base/messagequeue.cc
index fac7609cbf23af709f53c7b061d626c4b0fd266b..883735c9cc771821248cc64f980a47523dc57316 100644
--- a/webrtc/rtc_base/messagequeue.cc
+++ b/webrtc/rtc_base/messagequeue.cc
@@ -43,16 +43,6 @@ class SCOPED_LOCKABLE MarkProcessingCritScope {
RTC_DISALLOW_COPY_AND_ASSIGN(MarkProcessingCritScope);
};
-
-class FunctorPostMessageHandler : public MessageHandler {
- public:
- void OnMessage(Message* msg) override {
- RunnableData* data = static_cast<RunnableData*>(msg->pdata);
- data->Run();
- delete data;
- }
-};
-
} // namespace
//------------------------------------------------------------------
@@ -546,12 +536,4 @@ void MessageQueue::Dispatch(Message *pmsg) {
}
}
-void MessageQueue::PostFunctorInternal(const Location& posted_from,
- RunnableData* message_data) {
- // Use static to ensure it outlives this scope. Safe since
- // FunctorPostMessageHandler keeps no state.
- static FunctorPostMessageHandler handler;
- Post(posted_from, &handler, 0, message_data);
-}
-
} // namespace rtc
« no previous file with comments | « webrtc/rtc_base/messagequeue.h ('k') | webrtc/rtc_base/nethelpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698