Fixed the build.
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 26 Apr 2015 15:47:20 +0000 (15:47 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 26 Apr 2015 15:47:20 +0000 (15:47 +0000)
* UIProcess/ios/forms/WKFileUploadPanel.mm:
(-[WKFileUploadPanel _showDocumentPickerMenu]): Suppressed deprecation warnings around use
of -[UIDocumentMenuViewController _setIgnoreApplicationEntitlementForImport:].

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

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/ios/forms/WKFileUploadPanel.mm

index 550882e..17019ea 100644 (file)
@@ -1,3 +1,11 @@
+2015-04-26  Dan Bernstein  <mitz@apple.com>
+
+        Fixed the build.
+
+        * UIProcess/ios/forms/WKFileUploadPanel.mm:
+        (-[WKFileUploadPanel _showDocumentPickerMenu]): Suppressed deprecation warnings around use
+        of -[UIDocumentMenuViewController _setIgnoreApplicationEntitlementForImport:].
+
 2015-04-25  Tim Horton  <timothy_horton@apple.com>
 
         Further update gesture swipe shadow style
index deec6e2..92c9290 100644 (file)
@@ -509,7 +509,10 @@ static NSArray *UTIsForMIMETypes(NSArray *mimeTypes)
     // FIXME: We call -_setIgnoreApplicationEntitlementForImport: before initialization, because the assertion we're trying
     // to suppress is in the initializer. <rdar://problem/20137692> tracks doing this with a private initializer.
     _documentMenuController = adoptNS([UIDocumentMenuViewController alloc]);
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     [_documentMenuController _setIgnoreApplicationEntitlementForImport:YES];
+#pragma clang diagnostic pop
     [_documentMenuController initWithDocumentTypes:[self _documentPickerMenuMediaTypes] inMode:UIDocumentPickerModeImport];
     [_documentMenuController setDelegate:self];