From 7a60b36256a2c56b09ce35b0d9d74a58fe1c3098 Mon Sep 17 00:00:00 2001 From: "bsmedberg%covad.net" Date: Tue, 23 Aug 2005 20:34:00 +0000 Subject: [PATCH] Bug 285789 - MOZ_PHOENIX ifdefs in XRE code - r=mconnor --- Makefile.in | 5 ----- toolkit/xre/Makefile.in | 1 - toolkit/xre/nsNativeAppSupportOS2.cpp | 4 ---- toolkit/xre/nsNativeAppSupportWin.cpp | 27 --------------------------- 4 files changed, 37 deletions(-) diff --git a/Makefile.in b/Makefile.in index e369b1616a9..8453a4b1fe9 100644 --- a/Makefile.in +++ b/Makefile.in @@ -256,11 +256,6 @@ ifdef MOZ_XUL_APP tier_50_dirs += toolkit endif -ifdef MOZ_PHOENIX -#XXXBlake this shell path is a temp hack; toolkit shouldn't depend on browser -tier_50_dirs += browser/components/shell/public -endif - ifdef MOZ_XPINSTALL tier_50_dirs += xpinstall endif diff --git a/toolkit/xre/Makefile.in b/toolkit/xre/Makefile.in index aba8a02aa11..66dcbaccd38 100644 --- a/toolkit/xre/Makefile.in +++ b/toolkit/xre/Makefile.in @@ -66,7 +66,6 @@ REQUIRES = \ necko \ pref \ profile \ - shellservice \ string \ uriloader \ widget \ diff --git a/toolkit/xre/nsNativeAppSupportOS2.cpp b/toolkit/xre/nsNativeAppSupportOS2.cpp index 20034e75071..cb830d9af2e 100644 --- a/toolkit/xre/nsNativeAppSupportOS2.cpp +++ b/toolkit/xre/nsNativeAppSupportOS2.cpp @@ -77,10 +77,6 @@ #include "nsNetUtil.h" #include "nsIObserver.h" #include "nsIObserverService.h" -//#include "nsXPCOM.h" -#ifdef MOZ_PHOENIX -#include "nsIShellService.h" -#endif // These are needed to load a URL in a browser window. #include "nsIDOMLocation.h" diff --git a/toolkit/xre/nsNativeAppSupportWin.cpp b/toolkit/xre/nsNativeAppSupportWin.cpp index 7ed23c2d0c2..b469578d214 100644 --- a/toolkit/xre/nsNativeAppSupportWin.cpp +++ b/toolkit/xre/nsNativeAppSupportWin.cpp @@ -69,9 +69,6 @@ #include "nsNetUtil.h" #include "nsIObserver.h" #include "nsIObserverService.h" -#ifdef MOZ_PHOENIX -#include "nsIShellService.h" -#endif #include "nsIDOMLocation.h" #include "nsIJSContextStack.h" #include "nsIWebNavigation.h" @@ -321,7 +318,6 @@ private: static HSZ mApplication, mTopics[ topicCount ]; static DWORD mInstance; static PRBool mCanHandleRequests; - static PRBool mSupportingDDEExec; static char mMutexName[]; friend struct MessageWindow; }; // nsNativeAppSupportWin @@ -433,7 +429,6 @@ HSZ nsNativeAppSupportWin::mApplication = 0; HSZ nsNativeAppSupportWin::mTopics[nsNativeAppSupportWin::topicCount] = { 0 }; DWORD nsNativeAppSupportWin::mInstance = 0; PRBool nsNativeAppSupportWin::mCanHandleRequests = PR_FALSE; -PRBool nsNativeAppSupportWin::mSupportingDDEExec = PR_FALSE; char nsNativeAppSupportWin::mMutexName[ 128 ] = { 0 }; @@ -685,19 +680,6 @@ nsNativeAppSupportWin::FindTopic( HSZ topic ) { return -1; } -// Utility function that determines if we're handling http Internet shortcuts. -static PRBool isDefaultBrowser() -{ -#ifdef MOZ_PHOENIX - nsCOMPtr shell(do_GetService("@mozilla.org/browser/shell-service;1")); - PRBool isDefault; - shell->IsDefaultBrowser(PR_FALSE, &isDefault); - return isDefault; -#else - return FALSE; -#endif -} - // Utility function to delete a registry subkey. static DWORD deleteKey( HKEY baseKey, const char *keyName ) { // Make sure input subkey isn't null. @@ -838,15 +820,6 @@ nsNativeAppSupportWin::Quit() { mw.Destroy(); if ( mInstance ) { - // Undo registry setting if we need to. - if ( mSupportingDDEExec && isDefaultBrowser() ) { - mSupportingDDEExec = PR_FALSE; -#if MOZ_DEBUG_DDE - printf( "Deleting ddexec subkey on exit\n" ); -#endif - deleteKey( HKEY_CLASSES_ROOT, "http\\shell\\open\\ddeexec" ); - } - // Unregister application name. DdeNameService( mInstance, mApplication, 0, DNS_UNREGISTER ); // Clean up strings.