crosswalk-project/crosswalk — pull request #1035 by cmarcelo (2013-10-30 14:08:03+00:00)
Title: [Extensions] Remove CHECK() when destroying service

Cherry-picked from 3205ba7066174ffdd540e8cd37b7af974ce7594a.

When running Crosswalk as a tool for manage packages (--install and
related parameters), the lifetime of Browser Process is different than
when running it for loading an application. In that scenario invariants
we expected do not hold anymore, in particular, we never enter the
codepath that destroys the in process extension server.

A better fix is to ensure that --install (and others) do not even create
XWalkExtensionService in the first place. A new issue was created for
that: https://github.com/crosswalk-project/crosswalk/issues/839.

BUG=https://github.com/crosswalk-project/crosswalk/issues/706
BUG=https://crosswalk-project.org/jira/browse/XWALK-31