Bug 517102 - App update slow, progressbar works poorly on Windows CE. (Part 1, Logging cleanup) r=robstrong

This commit is contained in:
Justin Dolske 2009-10-06 16:39:51 -07:00
parent d4f2c468aa
commit 11b799ddfa

View File

@ -674,7 +674,7 @@ RemoveFile::Prepare()
// We expect the file to exist if we are to remove it.
int rv = NS_taccess(mDestFile, F_OK);
if (rv) {
LOG(("file cannot be removed because it does not exist; skipping\n"));
LOG(("file does not exist; skipping\n"));
mSkip = 1;
return OK;
}
@ -701,11 +701,11 @@ RemoveFile::Prepare()
int
RemoveFile::Execute()
{
LOG(("EXECUTE REMOVE " LOG_S "\n", mDestFile));
if (mSkip)
return OK;
LOG(("EXECUTE REMOVE " LOG_S "\n", mDestFile));
// We expect the file to exist if we are to remove it. We check here as well
// as in PREPARE since we might have been asked to remove the same file more
// than once: bug 311099.
@ -735,11 +735,11 @@ RemoveFile::Execute()
void
RemoveFile::Finish(int status)
{
LOG(("FINISH REMOVE " LOG_S "\n", mDestFile));
if (mSkip)
return;
LOG(("FINISH REMOVE " LOG_S "\n", mDestFile));
backup_finish(mDestFile, status);
}