зеркало из https://github.com/mozilla/pjs.git
Follow up to Bug 239136, remove redundant ifdefs now that Thunderbird is using the toolkit download manager. r=benjamin,sr=mscott
This commit is contained in:
Родитель
5da62903cd
Коммит
16332c080d
|
@ -62,9 +62,7 @@
|
||||||
#include "nsIProfileChangeStatus.h"
|
#include "nsIProfileChangeStatus.h"
|
||||||
#include "nsIPrefService.h"
|
#include "nsIPrefService.h"
|
||||||
#include "nsIFileURL.h"
|
#include "nsIFileURL.h"
|
||||||
#ifndef MOZ_THUNDERBIRD
|
|
||||||
#include "nsIAlertsService.h"
|
#include "nsIAlertsService.h"
|
||||||
#endif
|
|
||||||
#include "nsEmbedCID.h"
|
#include "nsEmbedCID.h"
|
||||||
#include "nsInt64.h"
|
#include "nsInt64.h"
|
||||||
|
|
||||||
|
@ -1174,7 +1172,6 @@ nsDownload::OnStatusChange(nsIWebProgress *aWebProgress,
|
||||||
void nsDownload::DisplayDownloadFinishedAlert()
|
void nsDownload::DisplayDownloadFinishedAlert()
|
||||||
{
|
{
|
||||||
nsresult rv;
|
nsresult rv;
|
||||||
#ifndef MOZ_THUNDERBIRD
|
|
||||||
nsCOMPtr<nsIAlertsService> alertsService(do_GetService(NS_ALERTSERVICE_CONTRACTID, &rv));
|
nsCOMPtr<nsIAlertsService> alertsService(do_GetService(NS_ALERTSERVICE_CONTRACTID, &rv));
|
||||||
if (NS_FAILED(rv))
|
if (NS_FAILED(rv))
|
||||||
return;
|
return;
|
||||||
|
@ -1205,7 +1202,6 @@ void nsDownload::DisplayDownloadFinishedAlert()
|
||||||
alertsService->ShowAlertNotification(NS_LITERAL_STRING("moz-icon://") + NS_ConvertUTF8toUTF16(url),
|
alertsService->ShowAlertNotification(NS_LITERAL_STRING("moz-icon://") + NS_ConvertUTF8toUTF16(url),
|
||||||
finishedTitle, finishedText, PR_TRUE,
|
finishedTitle, finishedText, PR_TRUE,
|
||||||
NS_LITERAL_STRING("download"), this);
|
NS_LITERAL_STRING("download"), this);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
|
|
Загрузка…
Ссылка в новой задаче