Commit 93c58ec9 authored by Mike Dougherty's avatar Mike Dougherty Committed by Commit Bot

[iOS] Fix compile guard

Use proper compile guard to check for building with Xcode 12.

Bug: None
Change-Id: I782c101380565ca87b82bf574492422a57d70b3b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2269763
Commit-Queue: Mike Dougherty <michaeldo@chromium.org>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Auto-Submit: Mike Dougherty <michaeldo@chromium.org>
Reviewed-by: default avatarSylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#782888}
parent d4f73f50
...@@ -447,7 +447,7 @@ web::WebState* GetWebStateWithId(WebStateList* web_state_list, ...@@ -447,7 +447,7 @@ web::WebState* GetWebStateWithId(WebStateList* web_state_list,
if ([itemProvider canLoadObjectOfClass:[NSURL class]]) { if ([itemProvider canLoadObjectOfClass:[NSURL class]]) {
// The parameter type has changed with Xcode 12 SDK. // The parameter type has changed with Xcode 12 SDK.
// TODO(crbug.com/1098318): Remove this once Xcode 11 support is dropped. // TODO(crbug.com/1098318): Remove this once Xcode 11 support is dropped.
#if defined(__IPHONE_14_0) #if defined(__IPHONE_14_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_14_0
using providerType = __kindof id<NSItemProviderReading>; using providerType = __kindof id<NSItemProviderReading>;
#else #else
using providerType = id<NSItemProviderReading>; using providerType = id<NSItemProviderReading>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment