Bug 865766 - Reorder MessageLoop init list to fix build warning. r=jlebar

This commit is contained in:
Daniel Holbert 2013-04-26 10:11:00 -04:00
parent beec825b40
commit ce245d2647

View File

@ -90,6 +90,7 @@ PRInt32 message_loop_id_seq = 0;
MessageLoop::MessageLoop(Type type)
: type_(type),
id_(PR_ATOMIC_INCREMENT(&message_loop_id_seq)),
nestable_tasks_allowed_(true),
exception_restoration_(false),
state_(NULL),
@ -97,8 +98,7 @@ MessageLoop::MessageLoop(Type type)
#ifdef OS_WIN
os_modal_loop_(false),
#endif // OS_WIN
next_sequence_num_(0),
id_(PR_ATOMIC_INCREMENT(&message_loop_id_seq)) {
next_sequence_num_(0) {
DCHECK(!current()) << "should only have one message loop per thread";
lazy_tls_ptr.Pointer()->Set(this);
if (type_ == TYPE_MOZILLA_UI) {