mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 560630 - NotificationService for e10s fennec initialized and used in different threads. r=bent.mozilla. a+
This commit is contained in:
parent
2eeea4735d
commit
afe1f4eb6f
@ -11,6 +11,7 @@
|
|||||||
#include "base/singleton.h"
|
#include "base/singleton.h"
|
||||||
#include "base/waitable_event.h"
|
#include "base/waitable_event.h"
|
||||||
#ifdef CHROMIUM_MOZILLA_BUILD
|
#ifdef CHROMIUM_MOZILLA_BUILD
|
||||||
|
#include "mozilla/ipc/ProcessChild.h"
|
||||||
#include "mozilla/ipc/BrowserProcessSubThread.h"
|
#include "mozilla/ipc/BrowserProcessSubThread.h"
|
||||||
typedef mozilla::ipc::BrowserProcessSubThread ChromeThread;
|
typedef mozilla::ipc::BrowserProcessSubThread ChromeThread;
|
||||||
#else
|
#else
|
||||||
@ -121,6 +122,8 @@ bool ChildProcessHost::Send(IPC::Message* msg) {
|
|||||||
void ChildProcessHost::Notify(NotificationType type) {
|
void ChildProcessHost::Notify(NotificationType type) {
|
||||||
#ifdef CHROMIUM_MOZILLA_BUILD
|
#ifdef CHROMIUM_MOZILLA_BUILD
|
||||||
MessageLoop* loop = ChromeThread::GetMessageLoop(ChromeThread::IO);
|
MessageLoop* loop = ChromeThread::GetMessageLoop(ChromeThread::IO);
|
||||||
|
if (!loop)
|
||||||
|
loop = mozilla::ipc::ProcessChild::message_loop();
|
||||||
if (!loop)
|
if (!loop)
|
||||||
loop = MessageLoop::current();
|
loop = MessageLoop::current();
|
||||||
loop->PostTask(
|
loop->PostTask(
|
||||||
|
Loading…
Reference in New Issue
Block a user