[iOS] Fix the iOS build; add case statements for kCLAuthorizationStatusAuthorized
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 25 Sep 2014 02:17:20 +0000 (02:17 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 25 Sep 2014 02:17:20 +0000 (02:17 +0000)
https://bugs.webkit.org/show_bug.cgi?id=137101
<rdar://problem/18449815>

Reviewed by Mark Lam.

* Misc/WebGeolocationCoreLocationProvider.mm:
(-[WebGeolocationCoreLocationProvider requestGeolocationAuthorization]):
(-[WebGeolocationCoreLocationProvider locationManager:didChangeAuthorizationStatus:]):

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

Source/WebKit/ios/ChangeLog
Source/WebKit/ios/Misc/WebGeolocationCoreLocationProvider.mm

index d223618..d411c6e 100644 (file)
@@ -1,3 +1,15 @@
+2014-09-24  Daniel Bates  <dabates@apple.com>
+
+        [iOS] Fix the iOS build; add case statements for kCLAuthorizationStatusAuthorized
+        https://bugs.webkit.org/show_bug.cgi?id=137101
+        <rdar://problem/18449815>
+
+        Reviewed by Mark Lam.
+
+        * Misc/WebGeolocationCoreLocationProvider.mm:
+        (-[WebGeolocationCoreLocationProvider requestGeolocationAuthorization]):
+        (-[WebGeolocationCoreLocationProvider locationManager:didChangeAuthorizationStatus:]):
+
 2014-09-24  Christophe Dumez  <cdumez@apple.com>
 
         Use is<HTML*Element>() instead of isHTML*Element() - Part 1
index 170bd92..556fa22 100644 (file)
@@ -109,6 +109,10 @@ using namespace WebCore;
         }
         break;
     }
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+    case kCLAuthorizationStatusAuthorized:
+#pragma clang diagnostic pop
     case kCLAuthorizationStatusAuthorizedAlways:
     case kCLAuthorizationStatusAuthorizedWhenInUse: {
         [_positionListener geolocationAuthorizationGranted];
@@ -158,6 +162,10 @@ static bool isAuthorizationGranted(CLAuthorizationStatus authorizationStatus)
             _isWaitingForAuthorization = NO;
             [_positionListener geolocationAuthorizationDenied];
             break;
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+        case kCLAuthorizationStatusAuthorized:
+#pragma clang diagnostic pop
         case kCLAuthorizationStatusAuthorizedAlways:
         case kCLAuthorizationStatusAuthorizedWhenInUse:
             _isWaitingForAuthorization = NO;