Skip to content

Commit

Permalink
Set sIsEmbedlite only when we are in PROCESS mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeshkova committed Jan 8, 2015
1 parent 229a25d commit 891c662
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion embedding/embedlite/EmbedLiteApp.cpp
Expand Up @@ -60,7 +60,6 @@ EmbedLiteApp::EmbedLiteApp()
, mIsAsyncLoop(false)
{
LOGT();
mozilla::startup::sIsEmbedlite = true;
sSingleton = this;
}

Expand Down Expand Up @@ -165,6 +164,7 @@ bool
EmbedLiteApp::StartWithCustomPump(EmbedType aEmbedType, EmbedLiteMessagePump* aEventLoop)
{
LOGT("Type: %s", aEmbedType == EMBED_THREAD ? "Thread" : "Process");
mozilla::startup::sIsEmbedlite = aEmbedType == EMBED_PROCESS;
NS_ASSERTION(mState == STOPPED, "App can be started only when it stays still");
NS_ASSERTION(!mUILoop, "Start called twice");
SetState(STARTING);
Expand All @@ -181,6 +181,7 @@ bool
EmbedLiteApp::Start(EmbedType aEmbedType)
{
LOGT("Type: %s", aEmbedType == EMBED_THREAD ? "Thread" : "Process");
mozilla::startup::sIsEmbedlite = aEmbedType == EMBED_PROCESS;
NS_ASSERTION(mState == STOPPED, "App can be started only when it stays still");
NS_ASSERTION(!mUILoop, "Start called twice");
SetState(STARTING);
Expand Down

0 comments on commit 891c662

Please sign in to comment.