[Wi-Fi Assertions] Pass a ResumptionReason to resumeWiFiAssertions
[WebKit-https.git] / Source / WebKit / NetworkProcess / cocoa / NetworkProcessCocoa.mm
index b7b07f7..330ae44 100644 (file)
@@ -221,7 +221,7 @@ void NetworkProcess::platformPrepareToSuspend()
 void NetworkProcess::platformProcessDidResume()
 {
 #if ENABLE(WIFI_ASSERTIONS)
-    resumeWiFiAssertions();
+    resumeWiFiAssertions(ResumptionReason::ProcessResuming);
 #endif
 }
 
@@ -235,7 +235,7 @@ void NetworkProcess::platformProcessDidTransitionToBackground()
 void NetworkProcess::platformProcessDidTransitionToForeground()
 {
 #if ENABLE(WIFI_ASSERTIONS)
-    resumeWiFiAssertions();
+    resumeWiFiAssertions(ResumptionReason::ProcessForegrounding);
 #endif
 }