Tried to fix the iOS build.
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 31 Mar 2014 04:37:29 +0000 (04:37 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 31 Mar 2014 04:37:29 +0000 (04:37 +0000)
* Misc/WebGeolocationCoreLocationProvider.mm:
(-[WebGeolocationCoreLocationProvider start]):
(-[WebGeolocationCoreLocationProvider locationManager:didChangeAuthorizationStatus:]):

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

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

index b50a944..a41edd8 100644 (file)
@@ -1,3 +1,11 @@
+2014-03-30  Dan Bernstein  <mitz@apple.com>
+
+        Tried to fix the iOS build.
+
+        * Misc/WebGeolocationCoreLocationProvider.mm:
+        (-[WebGeolocationCoreLocationProvider start]):
+        (-[WebGeolocationCoreLocationProvider locationManager:didChangeAuthorizationStatus:]):
+
 2014-03-27  Enrica Casucci  <enrica@apple.com>
 
         Add support for AirPlay picker for iOS.
index 48203db..3451012 100644 (file)
@@ -127,7 +127,8 @@ using namespace WebCore;
     case kCLAuthorizationStatusRestricted:
         [_positionListener geolocationDelegateUnableToStart];
         return;
-    case kCLAuthorizationStatusAuthorized:
+    case kCLAuthorizationStatusAuthorizedAlways:
+    case kCLAuthorizationStatusAuthorizedWhenInUse:
         [_locationManager.get() startUpdatingLocation];
         [_positionListener geolocationDelegateStarted];
         return;
@@ -158,7 +159,8 @@ using namespace WebCore;
             _isWaitingForAuthorization = NO;
             [_positionListener geolocationDelegateUnableToStart];
             break;
-        case kCLAuthorizationStatusAuthorized:
+        case kCLAuthorizationStatusAuthorizedAlways:
+        case kCLAuthorizationStatusAuthorizedWhenInUse:
             _isWaitingForAuthorization = NO;
             [_positionListener geolocationDelegateStarted];
             break;