Changeset 175254 in webkit


Ignore:
Timestamp:
Oct 28, 2014, 9:44:02 AM (11 years ago)
Author:
ap@apple.com
Message:

Windows build fix.

  • platform/network/cf/NetworkStorageSessionCFNet.cpp:

(WebCore::NetworkStorageSession::switchToNewTestingSession): Use a WTF function
for getting current process ID instead of getpid().

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r175252 r175254  
     12014-10-28  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Windows build fix.
     4
     5        * platform/network/cf/NetworkStorageSessionCFNet.cpp:
     6        (WebCore::NetworkStorageSession::switchToNewTestingSession): Use a WTF function
     7        for getting current process ID instead of getpid().
     8
    192014-10-28  Mihnea Ovidenie  <mihnea@adobe.com>
    210
  • trunk/Source/WebCore/platform/network/cf/NetworkStorageSessionCFNet.cpp

    r175232 r175254  
    3030#include <wtf/NeverDestroyed.h>
    3131#include <wtf/PassOwnPtr.h>
     32#include <wtf/ProcessID.h>
    3233
    3334#if PLATFORM(COCOA)
     
    5556{
    5657    // 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>).
    57     String sessionName = String::format("WebKit Test-%u", static_cast<uint32_t>(getpid()));
     58    String sessionName = String::format("WebKit Test-%u", static_cast<uint32_t>(getCurrentProcessID()));
    5859#if PLATFORM(COCOA)
    5960    defaultNetworkStorageSession() = adoptPtr(new NetworkStorageSession(adoptCF(wkCreatePrivateStorageSession(sessionName.createCFString().get()))));
Note: See TracChangeset for help on using the changeset viewer.