Navigation Menu

Skip to content

Commit

Permalink
Make embed Core init test pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeshkova committed May 26, 2014
1 parent 171f479 commit c6e9454
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion embedding/embedlite/embedhelpers/EmbedLiteUILoop.cpp
Expand Up @@ -26,7 +26,16 @@ EmbedLiteUILoop::EmbedLiteUILoop(EmbedLiteMessagePump* aCustomLoop)

EmbedLiteUILoop::~EmbedLiteUILoop()
{
LOGT();
// We do call Quit before XPCOM shutdown, that make UI loop having some leftovers like xpcom-shutdown messages in queue
// let's clean it up
while (!incoming_queue_.empty()) {
LOGT("Warning! incoming queue is not empty on dtor");
incoming_queue_.pop();
}
while (!work_queue_.empty()) {
LOGT("Warning! work queue is not empty on dtor");
work_queue_.pop();
}
}

void EmbedLiteUILoop::StartLoop()
Expand Down

0 comments on commit c6e9454

Please sign in to comment.