/* static */ IOInterposer* IOInterposer::GetInstance() { if (!sSingleton) { // We can't actually use this assertion because we initialize this code // before XPCOM is initialized, so NS_IsMainThread() always returns false. // MOZ_ASSERT(NS_IsMainThread()); sSingleton = new IOInterposer(); sSingleton->Init(); } return sSingleton.get(); }