Bug 722868 - Part 3: Make insExternalAppHandler::OpenWithApplication aware of the deleteTemporaryPrivateFileWhenPossible API; r=bzbarsky

This commit is contained in:
Ehsan Akhgari 2012-04-24 23:04:49 -04:00
parent 3dfe40b202
commit 5420a60074

View File

@ -2208,9 +2208,12 @@ nsresult nsExternalAppHandler::OpenWithApplication()
}
// Always schedule files to be deleted at the end of the private browsing
// mode, regardless of the value of the pref.
else if (deleteTempFileOnExit || mExtProtSvc->InPrivateBrowsing()) {
else if (deleteTempFileOnExit) {
mExtProtSvc->DeleteTemporaryFileOnExit(mFinalFileDestination);
}
else if (mExtProtSvc->InPrivateBrowsing()) {
mExtProtSvc->DeleteTemporaryPrivateFileWhenPossible(mFinalFileDestination);
}
}
return rv;