From a37547e6c09a35fa8738288271448a7ab11cde86 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Fri, 30 Dec 2016 18:57:18 +0100 Subject: remove the MOZ_ prefix from a few env variables and defines Change-Id: Icbb5f0751cd5f85fc2c4af8d2adbc8d64911a94b --- onlineupdate/source/service/workmonitor.cxx | 8 ++++---- onlineupdate/source/update/updater/updater.cxx | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'onlineupdate/source') diff --git a/onlineupdate/source/service/workmonitor.cxx b/onlineupdate/source/service/workmonitor.cxx index f27a9147f4d6..76bbe1c911d7 100644 --- a/onlineupdate/source/service/workmonitor.cxx +++ b/onlineupdate/source/service/workmonitor.cxx @@ -223,10 +223,10 @@ StartUpdateProcess(int argc, MOVEFILE_REPLACE_EXISTING); } - // Add an env var for MOZ_USING_SERVICE so the updater.exe can + // Add an env var for USING_SERVICE so the updater.exe can // do anything special that it needs to do for service updates. - // Search in updater.cpp for more info on MOZ_USING_SERVICE. - putenv(const_cast("MOZ_USING_SERVICE=1")); + // Search in updater.cpp for more info on USING_SERVICE. + putenv(const_cast("USING_SERVICE=1")); LOG(("Starting service with cmdline: %ls", cmdLine)); processStarted = CreateProcessW(argv[0], cmdLine, nullptr, nullptr, FALSE, @@ -234,7 +234,7 @@ StartUpdateProcess(int argc, nullptr, nullptr, &si, &pi); // Empty value on putenv is how you remove an env variable in Windows - putenv(const_cast("MOZ_USING_SERVICE=")); + putenv(const_cast("USING_SERVICE=")); BOOL updateWasSuccessful = FALSE; if (processStarted) { diff --git a/onlineupdate/source/update/updater/updater.cxx b/onlineupdate/source/update/updater/updater.cxx index c60e40eba225..2a680139459c 100644 --- a/onlineupdate/source/update/updater/updater.cxx +++ b/onlineupdate/source/update/updater/updater.cxx @@ -120,7 +120,7 @@ struct UpdateServerThreadArgs #endif #ifdef _WIN32 -#ifdef MOZ_MAINTENANCE_SERVICE +#ifdef MAINTENANCE_SERVICE #include "registrycertificates.h" #endif BOOL PathAppendSafe(LPWSTR base, LPCWSTR extra); @@ -1881,7 +1881,7 @@ LaunchWinPostProcess(const WCHAR *installationDir, return false; } -#if !defined(TEST_UPDATER) && defined(MOZ_MAINTENANCE_SERVICE) +#if !defined(TEST_UPDATER) && defined(MAINTENANCE_SERVICE) if (sUsingService && !DoesBinaryMatchAllowedCertificates(installationDir, exefullpath)) { return false; @@ -2043,7 +2043,7 @@ WriteStatusFile(int status) WriteStatusFile(text); } -#ifdef MOZ_MAINTENANCE_SERVICE +#ifdef MAINTENANCE_SERVICE /* * Read the update.status file and sets isPendingService to true if * the status is set to pending-service. @@ -2529,7 +2529,7 @@ int LaunchCallbackAndPostProcessApps(int argc, NS_tchar** argv, // because it's possible we are updating with updater.exe without the // service if the service failed to apply the update. We want to update // the service to a newer version in that case. If we are not running - // through the service, then MOZ_USING_SERVICE will not exist. + // through the service, then USING_SERVICE will not exist. if (!sUsingService) { StartServiceUpdate(gInstallDirPath); } @@ -2639,7 +2639,7 @@ int NS_main(int argc, NS_tchar **argv) // We never want the service to be used unless we build with // the maintenance service. -#ifdef MOZ_MAINTENANCE_SERVICE +#ifdef MAINTENANCE_SERVICE useService = IsUpdateStatusPendingService(); // Our tests run with a different apply directory for each test. // We use this registry key on our test slaves to store the @@ -2796,9 +2796,9 @@ int NS_main(int argc, NS_tchar **argv) #endif #if defined(_WIN32) -#ifdef MOZ_MAINTENANCE_SERVICE - sUsingService = EnvHasValue("MOZ_USING_SERVICE"); - putenv(const_cast("MOZ_USING_SERVICE=")); +#ifdef MAINTENANCE_SERVICE + sUsingService = EnvHasValue("USING_SERVICE"); + putenv(const_cast("USING_SERVICE=")); #endif // lastFallbackError keeps track of the last error for the service not being // used, in case of an error when fallback is not enabled we write the -- cgit