Title: [175254] trunk/Source/WebCore
Revision
175254
Author
a...@apple.com
Date
2014-10-28 09:44:02 -0700 (Tue, 28 Oct 2014)

Log Message

Windows build fix.

* platform/network/cf/NetworkStorageSessionCFNet.cpp:
(WebCore::NetworkStorageSession::switchToNewTestingSession): Use a WTF function
for getting current process ID instead of getpid().

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (175253 => 175254)


--- trunk/Source/WebCore/ChangeLog	2014-10-28 16:30:53 UTC (rev 175253)
+++ trunk/Source/WebCore/ChangeLog	2014-10-28 16:44:02 UTC (rev 175254)
@@ -1,3 +1,11 @@
+2014-10-28  Alexey Proskuryakov  <a...@apple.com>
+
+        Windows build fix.
+
+        * platform/network/cf/NetworkStorageSessionCFNet.cpp:
+        (WebCore::NetworkStorageSession::switchToNewTestingSession): Use a WTF function
+        for getting current process ID instead of getpid().
+
 2014-10-28  Mihnea Ovidenie  <mih...@adobe.com>
 
         Clean up subtrees selection code

Modified: trunk/Source/WebCore/platform/network/cf/NetworkStorageSessionCFNet.cpp (175253 => 175254)


--- trunk/Source/WebCore/platform/network/cf/NetworkStorageSessionCFNet.cpp	2014-10-28 16:30:53 UTC (rev 175253)
+++ trunk/Source/WebCore/platform/network/cf/NetworkStorageSessionCFNet.cpp	2014-10-28 16:44:02 UTC (rev 175254)
@@ -29,6 +29,7 @@
 #include <wtf/MainThread.h>
 #include <wtf/NeverDestroyed.h>
 #include <wtf/PassOwnPtr.h>
+#include <wtf/ProcessID.h>
 
 #if PLATFORM(COCOA)
 #include "WebCoreSystemInterface.h"
@@ -54,7 +55,7 @@
 void NetworkStorageSession::switchToNewTestingSession()
 {
     // Session name should be short enough for shared memory region name to be under the limit, otehrwise sandbox rules won't work (see <rdar://problem/13642852>).
-    String sessionName = String::format("WebKit Test-%u", static_cast<uint32_t>(getpid()));
+    String sessionName = String::format("WebKit Test-%u", static_cast<uint32_t>(getCurrentProcessID()));
 #if PLATFORM(COCOA)
     defaultNetworkStorageSession() = adoptPtr(new NetworkStorageSession(adoptCF(wkCreatePrivateStorageSession(sessionName.createCFString().get()))));
 #else
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to