Reverted r171854, because it broke building with the OS X 10.8 SDK.
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Jul 2014 16:16:14 +0000 (16:16 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Jul 2014 16:16:14 +0000 (16:16 +0000)
* platform/network/cocoa/CredentialCocoa.mm:
(WebCore::toCredentialPersistence):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/network/cocoa/CredentialCocoa.mm

index 2d40db2..e3f9315 100644 (file)
@@ -1,5 +1,12 @@
 2014-07-31  Dan Bernstein  <mitz@apple.com>
 
+        Reverted r171854, because it broke building with the OS X 10.8 SDK.
+
+        * platform/network/cocoa/CredentialCocoa.mm:
+        (WebCore::toCredentialPersistence):
+
+2014-07-31  Dan Bernstein  <mitz@apple.com>
+
         Tried to fix building with the OS X 10.9 SDK while targeting OS X 10.8.
 
         * platform/network/cocoa/CredentialCocoa.mm:
index e9cd967..0e14682 100644 (file)
 #import "config.h"
 #import "CredentialCocoa.h"
 
-#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED == 1080
-// This value is available in OS X 10.8 but only appeared in the OS X 10.9 SDK.
-enum {
-    NSURLCredentialPersistenceSynchronizable = 3
-};
-#endif
-
 #if USE(CFNETWORK)
 @interface NSURLCredential (WebDetails)
 - (id)_initWithCFURLCredential:(CFURLCredentialRef)credential;
@@ -65,7 +58,9 @@ static CredentialPersistence toCredentialPersistence(NSURLCredentialPersistence
     case NSURLCredentialPersistenceForSession:
         return CredentialPersistenceForSession;
     case NSURLCredentialPersistencePermanent:
+#if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
     case NSURLCredentialPersistenceSynchronizable:
+#endif
         return CredentialPersistencePermanent;
     }