Skip to content

Commit

Permalink
[ios] Fix compilation of "chrome" for catalyst environment
Browse files Browse the repository at this point in the history
The constant is only used in a block that is not compiled when
building for catalyst, so move the definition behind an #if
check too.

Bug: none
Change-Id: Icdec2698d462d6426ce321479578e76736dcde44
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3474691
Auto-Submit: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: Robbie Gibson <rkgibson@google.com>
Commit-Queue: Robbie Gibson <rkgibson@google.com>
Cr-Commit-Position: refs/heads/main@{#973003}
  • Loading branch information
sdefresne authored and Chromium LUCI CQ committed Feb 18, 2022
1 parent cd1cf97 commit 90af1d3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
#endif

namespace {
#if !TARGET_OS_MACCATALYST
constexpr CGFloat preferredCornerRadius = 20;
#endif // TARGET_OS_MACCATALYST
} // namespace

@interface PasswordSuggestionCoordinator () <
Expand Down

0 comments on commit 90af1d3

Please sign in to comment.