[tbb-commits] [tor-browser/tor-browser-91.4.0esr-11.0-1] Bug 1728536 - Fix compilation error with `--disable-maintenance-service`. r?#application-update-reviewers

sysrqb at torproject.org sysrqb at torproject.org
Thu Dec 2 23:12:05 UTC 2021


commit a21cc727a3f1d94581d777c2499ac2e601852b1a
Author: Nick Alexander <nalexander at mozilla.com>
Date:   Mon Sep 27 17:10:27 2021 +0000

    Bug 1728536 - Fix compilation error with `--disable-maintenance-service`. r?#application-update-reviewers
    
    This was a regression from Bug 1658711.
    
    Differential Revision: https://phabricator.services.mozilla.com/D126715
---
 toolkit/mozapps/update/updater/updater.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/toolkit/mozapps/update/updater/updater.cpp b/toolkit/mozapps/update/updater/updater.cpp
index 70ca36dcc3d2..71be78dca2b8 100644
--- a/toolkit/mozapps/update/updater/updater.cpp
+++ b/toolkit/mozapps/update/updater/updater.cpp
@@ -3673,6 +3673,7 @@ int NS_main(int argc, NS_tchar** argv) {
 #  endif
       }
 
+#  ifdef MOZ_MAINTENANCE_SERVICE
       // If we started the elevated updater, and it finished, check the secure
       // update status file to make sure that it succeeded, and if it did we
       // need to launch the PostUpdate process in the unelevated updater which
@@ -3690,6 +3691,7 @@ int NS_main(int argc, NS_tchar** argv) {
           }
         }
       }
+#  endif
 
       CloseHandle(elevatedFileHandle);
 





More information about the tbb-commits mailing list