Bug 1258908: Rename TYPE_MOZILLA_UI to TYPE_MOZILLA_PARENT. r=jld

This commit is contained in:
Kyle Huey 2016-03-28 10:28:14 -07:00
parent 20daca1a98
commit 29596ecfff
3 changed files with 5 additions and 5 deletions

View File

@ -106,7 +106,7 @@ MessageLoop::MessageLoop(Type type)
get_tls_ptr().Set(this);
switch (type_) {
case TYPE_MOZILLA_UI:
case TYPE_MOZILLA_PARENT:
pump_ = new mozilla::ipc::MessagePump();
return;
case TYPE_MOZILLA_CHILD:

View File

@ -199,7 +199,7 @@ public:
// This type of ML is used in Mozilla child processes which initialize
// XPCOM and use the gecko event loop.
//
// TYPE_MOZILLA_UI
// TYPE_MOZILLA_PARENT
// This type of ML is used in Mozilla parent processes which initialize
// XPCOM and use the gecko event loop.
//
@ -216,7 +216,7 @@ public:
TYPE_UI,
TYPE_IO,
TYPE_MOZILLA_CHILD,
TYPE_MOZILLA_UI,
TYPE_MOZILLA_PARENT,
TYPE_MOZILLA_NONMAINTHREAD,
TYPE_MOZILLA_NONMAINUITHREAD
};
@ -473,7 +473,7 @@ class MessageLoopForUI : public MessageLoop {
return NULL;
Type type = loop->type();
DCHECK(type == MessageLoop::TYPE_UI ||
type == MessageLoop::TYPE_MOZILLA_UI ||
type == MessageLoop::TYPE_MOZILLA_PARENT ||
type == MessageLoop::TYPE_MOZILLA_CHILD);
return static_cast<MessageLoopForUI*>(loop);
}

View File

@ -523,7 +523,7 @@ NS_InitXPCOM2(nsIServiceManager** aResult,
MessageLoop* messageLoop = MessageLoop::current();
if (!messageLoop) {
sMessageLoop = new MessageLoopForUI(MessageLoop::TYPE_MOZILLA_UI);
sMessageLoop = new MessageLoopForUI(MessageLoop::TYPE_MOZILLA_PARENT);
sMessageLoop->set_thread_name("Gecko");
// Set experimental values for main thread hangs:
// 128ms for transient hangs and 8192ms for permanent hangs