GvrDelegateProvider::SetInstance has a DCHECK to ensure only one instance is set at a time.
Right now, it is not being cleared because there are no callers of:
VrShellDelegate::~VrShellDelegate() {
GvrDelegateProvider::SetInstance(nullptr);
}
There are other cases to consider where multiple activities can be alive at any given point, so there is a chance of multiple VrShellDelegate[s]. Need to figure out that more clearly.
Comment 1 by mthiesse@chromium.org
, Oct 13 2016