From 206a6b2c9faf07e701ea9e94a94d3c17cfb50b95 Mon Sep 17 00:00:00 2001 From: Edgar Flores Date: Tue, 9 Aug 2011 12:11:48 +0200 Subject: [PATCH] Bug 624740 - Alerts service shouldn't use nsDependentString to convert an nsAString to an nsString. r=neil --- toolkit/components/alerts/nsAlertsService.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolkit/components/alerts/nsAlertsService.cpp b/toolkit/components/alerts/nsAlertsService.cpp index 70231c32bf8..b8b0a8aed32 100644 --- a/toolkit/components/alerts/nsAlertsService.cpp +++ b/toolkit/components/alerts/nsAlertsService.cpp @@ -53,7 +53,7 @@ #include "nsIServiceManager.h" #include "nsIDOMWindow.h" #include "nsIWindowWatcher.h" -#include "nsDependentString.h" +#include "nsPromiseFlatString.h" #include "nsWidgetsCID.h" #include "nsILookAndFeel.h" #include "nsToolkitCompsCID.h" @@ -85,7 +85,7 @@ NS_IMETHODIMP nsAlertsService::ShowAlertNotification(const nsAString & aImageUrl ContentChild* cpc = ContentChild::GetSingleton(); if (aAlertListener) - cpc->AddRemoteAlertObserver(nsDependentString(aAlertCookie), aAlertListener); + cpc->AddRemoteAlertObserver(PromiseFlatString(aAlertCookie), aAlertListener); cpc->SendShowAlertNotification(nsAutoString(aImageUrl), nsAutoString(aAlertTitle),