[Wi-Fi Assertions] Pass a ResumptionReason to resumeWiFiAssertions
authoraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 29 Jul 2018 22:13:19 +0000 (22:13 +0000)
committeraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 29 Jul 2018 22:13:19 +0000 (22:13 +0000)
https://bugs.webkit.org/show_bug.cgi?id=188142
<rdar://problem/42628842>

Reviewed by Darin Adler.

* NetworkProcess/cocoa/NetworkProcessCocoa.mm:
(WebKit::NetworkProcess::platformProcessDidResume):
(WebKit::NetworkProcess::platformProcessDidTransitionToForeground):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@234349 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/NetworkProcess/cocoa/NetworkProcessCocoa.mm

index 082aa34..ec9cacb 100644 (file)
@@ -1,3 +1,15 @@
+2018-07-28  Andy Estes  <aestes@apple.com>
+
+        [Wi-Fi Assertions] Pass a ResumptionReason to resumeWiFiAssertions
+        https://bugs.webkit.org/show_bug.cgi?id=188142
+        <rdar://problem/42628842>
+
+        Reviewed by Darin Adler.
+
+        * NetworkProcess/cocoa/NetworkProcessCocoa.mm:
+        (WebKit::NetworkProcess::platformProcessDidResume):
+        (WebKit::NetworkProcess::platformProcessDidTransitionToForeground):
+
 2018-07-28  Darin Adler  <darin@apple.com>
 
         [Cocoa] Update more WebCore Objective-C code to be ARC compatible
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
 }