Loading startupcache/StartupCache.cpp +9 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,9 @@ #include "GeckoProfiler.h" #include "nsAppRunner.h" #include "xpcpublic.h" #ifdef MOZ_BACKGROUNDTASKS # include "mozilla/BackgroundTasks.h" #endif #if defined(XP_WIN) # include <windows.h> Loading Loading @@ -115,6 +118,12 @@ StartupCache* StartupCache::GetSingletonNoInit() { } StartupCache* StartupCache::GetSingleton() { #ifdef MOZ_BACKGROUNDTASKS if (BackgroundTasks::IsBackgroundTaskMode()) { return nullptr; } #endif if (!gStartupCache) { if (!XRE_IsParentProcess()) { return nullptr; Loading startupcache/moz.build +3 −0 Original line number Diff line number Diff line Loading @@ -31,4 +31,7 @@ XPIDL_SOURCES += [ "nsIStartupCacheInfo.idl", ] if CONFIG["MOZ_BACKGROUNDTASKS"]: DEFINES["MOZ_BACKGROUNDTASKS"] = True FINAL_LIBRARY = "xul" Loading
startupcache/StartupCache.cpp +9 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,9 @@ #include "GeckoProfiler.h" #include "nsAppRunner.h" #include "xpcpublic.h" #ifdef MOZ_BACKGROUNDTASKS # include "mozilla/BackgroundTasks.h" #endif #if defined(XP_WIN) # include <windows.h> Loading Loading @@ -115,6 +118,12 @@ StartupCache* StartupCache::GetSingletonNoInit() { } StartupCache* StartupCache::GetSingleton() { #ifdef MOZ_BACKGROUNDTASKS if (BackgroundTasks::IsBackgroundTaskMode()) { return nullptr; } #endif if (!gStartupCache) { if (!XRE_IsParentProcess()) { return nullptr; Loading
startupcache/moz.build +3 −0 Original line number Diff line number Diff line Loading @@ -31,4 +31,7 @@ XPIDL_SOURCES += [ "nsIStartupCacheInfo.idl", ] if CONFIG["MOZ_BACKGROUNDTASKS"]: DEFINES["MOZ_BACKGROUNDTASKS"] = True FINAL_LIBRARY = "xul"