diff --git a/xpfe/bootstrap/appleevents/nsAEGetURLSuiteHandler.cpp b/xpfe/bootstrap/appleevents/nsAEGetURLSuiteHandler.cpp index 67a89b42e8c..9fab3f70515 100644 --- a/xpfe/bootstrap/appleevents/nsAEGetURLSuiteHandler.cpp +++ b/xpfe/bootstrap/appleevents/nsAEGetURLSuiteHandler.cpp @@ -169,9 +169,7 @@ void AEGetURLSuiteHandler::HandleGetURLEvent(const AppleEvent *appleEvent, Apple if ( !targetWindow ) { if ( sReuseWindow ) { -// nsCOMPtr mediator ( do_GetService(NS_WINDOWMEDIATOR_CONTRACTID) ); -static NS_DEFINE_CID(kWindowMediatorCID, NS_WINDOWMEDIATOR_CID); - nsCOMPtr mediator ( do_GetService(kWindowMediatorCID) ); + nsCOMPtr mediator ( do_GetService(NS_WINDOWMEDIATOR_CONTRACTID) ); if ( mediator ) { nsCOMPtr windowEnum; mediator->GetZOrderXULWindowEnumerator(NS_LITERAL_STRING("navigator:browser").get(), PR_TRUE, getter_AddRefs(windowEnum));