Bug 564602 - provide Parent::GetSingleton() without force child process creation.r=jones.chris.g

This commit is contained in:
Oleg Romashin 2010-05-11 13:29:57 -04:00
Родитель 2f5e81b4da
Коммит 3897afb506
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -60,12 +60,12 @@ namespace dom {
ContentProcessParent* ContentProcessParent::gSingleton;
ContentProcessParent*
ContentProcessParent::GetSingleton()
ContentProcessParent::GetSingleton(PRBool aForceNew)
{
if (gSingleton && !gSingleton->IsAlive())
gSingleton = nsnull;
if (!gSingleton) {
if (!gSingleton && aForceNew) {
nsRefPtr<ContentProcessParent> parent = new ContentProcessParent();
if (parent) {
nsCOMPtr<nsIObserverService> obs =

Просмотреть файл

@ -67,7 +67,7 @@ private:
typedef mozilla::ipc::TestShellParent TestShellParent;
public:
static ContentProcessParent* GetSingleton();
static ContentProcessParent* GetSingleton(PRBool aForceNew = PR_TRUE);
#if 0
// TODO: implement this somewhere!