Unreviewed, build fix for r244097
authordpino@igalia.com <dpino@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Apr 2019 07:22:52 +0000 (07:22 +0000)
committerdpino@igalia.com <dpino@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Apr 2019 07:22:52 +0000 (07:22 +0000)
* NetworkProcess/NetworkProcess.cpp:
(WebKit::NetworkProcess::actualPrepareToSuspend):
(WebKit::NetworkProcess::resume):
Added guards for ENABLE(SERVICE_WORKER)

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

Source/WebKit/ChangeLog
Source/WebKit/NetworkProcess/NetworkProcess.cpp

index a07252c..1a9b454 100644 (file)
@@ -1,3 +1,12 @@
+2019-04-10  Diego Pino Garcia  <dpino@igalia.com>
+
+        Unreviewed, build fix for r244097
+
+        * NetworkProcess/NetworkProcess.cpp:
+        (WebKit::NetworkProcess::actualPrepareToSuspend):
+        (WebKit::NetworkProcess::resume):
+        Added guards for ENABLE(SERVICE_WORKER)
+
 2019-04-09  Keith Rollin  <krollin@apple.com>
 
         Unreviewed build maintenance -- update .xcfilelists.
index 401bf67..0ccbce8 100644 (file)
@@ -1984,8 +1984,10 @@ void NetworkProcess::actualPrepareToSuspend(ShouldAcknowledgeWhenReadyToSuspend
     for (auto& connection : m_webProcessConnections)
         connection->cleanupForSuspension([delayedTaskCounter] { });
 
+#if ENABLE(SERVICE_WORKER)
     for (auto& server : m_swServers.values())
         server->startSuspension([delayedTaskCounter] { });
+#endif
 }
 
 void NetworkProcess::processWillSuspendImminently(CompletionHandler<void(bool)>&& completionHandler)
@@ -2032,8 +2034,10 @@ void NetworkProcess::resume()
     for (auto& connection : m_webProcessConnections)
         connection->endSuspension();
 
+#if ENABLE(SERVICE_WORKER)
     for (auto& server : m_swServers.values())
         server->endSuspension();
+#endif
 }
 
 void NetworkProcess::prefetchDNS(const String& hostname)