3333#include " mozilla/AntiTrackingCommon.h"
3434#include " mozilla/BasePrincipal.h"
3535#include " mozilla/ClearOnShutdown.h"
36+ #include " mozilla/Components.h"
3637#include " mozilla/StyleSheetInlines.h"
3738#include " mozilla/DataStorage.h"
3839#include " mozilla/devtools/HeapSnapshotTempFileHelperParent.h"
180181#include " nsServiceManagerUtils.h"
181182#include " nsStyleSheetService.h"
182183#include " nsThreadUtils.h"
183- #include " nsToolkitCompsCID.h"
184184#include " nsWidgetsCID.h"
185185#include " PreallocatedProcessManager.h"
186186#include " ProcessPriorityManager.h"
@@ -3803,8 +3803,7 @@ mozilla::ipc::IPCResult ContentParent::RecvShowAlert(
38033803 return IPC_OK ();
38043804 }
38053805
3806- nsCOMPtr<nsIAlertsService> sysAlerts (
3807- do_GetService (NS_ALERTSERVICE_CONTRACTID ));
3806+ nsCOMPtr<nsIAlertsService> sysAlerts (components::Alerts::Service ());
38083807 if (sysAlerts) {
38093808 sysAlerts->ShowAlert (aAlert, this );
38103809 }
@@ -3817,8 +3816,7 @@ mozilla::ipc::IPCResult ContentParent::RecvCloseAlert(
38173816 return IPC_OK ();
38183817 }
38193818
3820- nsCOMPtr<nsIAlertsService> sysAlerts (
3821- do_GetService (NS_ALERTSERVICE_CONTRACTID ));
3819+ nsCOMPtr<nsIAlertsService> sysAlerts (components::Alerts::Service ());
38223820 if (sysAlerts) {
38233821 sysAlerts->CloseAlert (aName, aPrincipal);
38243822 }
0 commit comments