Follow up to Bug 239136, remove redundant ifdefs now that Thunderbird is using the toolkit download manager. r=benjamin,sr=mscott
git-svn-id: svn://10.0.0.236/trunk@193517 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user