Skip to content

Commit

Permalink
[sailfishos][gecko] MessageLoop fixing.. We should return this back a…
Browse files Browse the repository at this point in the history
…s well
  • Loading branch information
rainemak committed May 27, 2020
1 parent 8bbc37f commit c159c9c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ipc/chromium/src/base/message_loop.cc
Expand Up @@ -25,6 +25,9 @@
#if defined(MOZ_WIDGET_GTK)
#include "base/message_pump_glib.h"
#endif
#ifdef MOZ_WIDGET_QT
#include "base/message_pump_qt.h"
#endif
#endif
#ifdef ANDROID
#include "base/message_pump_android.h"
Expand Down
1 change: 1 addition & 0 deletions ipc/chromium/src/base/message_loop.h
Expand Up @@ -457,6 +457,7 @@ class MessageLoopForUI : public MessageLoop {
return NULL;
Type type = loop->type();
DCHECK(type == MessageLoop::TYPE_UI ||
type == MessageLoop::TYPE_EMBED ||
type == MessageLoop::TYPE_MOZILLA_PARENT ||
type == MessageLoop::TYPE_MOZILLA_CHILD);
return static_cast<MessageLoopForUI*>(loop);
Expand Down
3 changes: 3 additions & 0 deletions ipc/chromium/src/base/message_pump_qt.h
Expand Up @@ -54,6 +54,9 @@ class MessagePumpForUI : public MessagePump {
// HandleDispatch is called after the poll has completed.
void HandleDispatch();

protected:
// This flag is set to false when Run should return.
bool keep_running_;
private:
// We may make recursive calls to Run, so we save state that needs to be
// separate between them in this structure type.
Expand Down

0 comments on commit c159c9c

Please sign in to comment.