crosswalk-project/crosswalk — pull request #1445 by seanlong (2014-01-07 05:45:35+00:00)
Title: [Runtime] Fix application extension registration issue

ISSUE: https://crosswalk-project.org/jira/browse/XWALK-759

When launched as an external web browser, the application extension instance
will be created and trigger "CHECK(application)" assertion failure if
xwalk.app.* APIs are called.

To fix this, now we only register the application extensions after check whether
we have a currently running application in ApplicationService.