зеркало из https://github.com/mozilla/gecko-dev.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:
Родитель
64947e584e
Коммит
50f1d773bf
|
@ -62,9 +62,7 @@
|
|||
#include "nsIProfileChangeStatus.h"
|
||||
#include "nsIPrefService.h"
|
||||
#include "nsIFileURL.h"
|
||||
#ifndef MOZ_THUNDERBIRD
|
||||
#include "nsIAlertsService.h"
|
||||
#endif
|
||||
#include "nsEmbedCID.h"
|
||||
#include "nsInt64.h"
|
||||
|
||||
|
@ -1174,7 +1172,6 @@ nsDownload::OnStatusChange(nsIWebProgress *aWebProgress,
|
|||
void nsDownload::DisplayDownloadFinishedAlert()
|
||||
{
|
||||
nsresult rv;
|
||||
#ifndef MOZ_THUNDERBIRD
|
||||
nsCOMPtr<nsIAlertsService> alertsService(do_GetService(NS_ALERTSERVICE_CONTRACTID, &rv));
|
||||
if (NS_FAILED(rv))
|
||||
return;
|
||||
|
@ -1205,7 +1202,6 @@ void nsDownload::DisplayDownloadFinishedAlert()
|
|||
alertsService->ShowAlertNotification(NS_LITERAL_STRING("moz-icon://") + NS_ConvertUTF8toUTF16(url),
|
||||
finishedTitle, finishedText, PR_TRUE,
|
||||
NS_LITERAL_STRING("download"), this);
|
||||
#endif
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
Загрузка…
Ссылка в новой задаче