diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2018-07-06 15:52:51 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2018-07-06 14:24:45 +0000 |
commit | c67d3d4a83a3be8f98a8ddf098e58191da0a2165 (patch) | |
tree | 7efffaea5eb3c5c0b7e3969ccaea03fde18dce65 | |
parent | 30a333f2b8649ccd9babb78a7b1e8057d03312a3 (diff) | |
download | qtwebengine-chromium-c67d3d4a83a3be8f98a8ddf098e58191da0a2165.tar.gz |
FIXUP: Fix building on macOS with Xcode 8.3.3
Change-Id: I722950088130c1ddeb277369017ead068fd26b6d
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r-- | chromium/services/shape_detection/face_detection_provider_mac.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chromium/services/shape_detection/face_detection_provider_mac.mm b/chromium/services/shape_detection/face_detection_provider_mac.mm index c0ea91aff2a..0af39b982be 100644 --- a/chromium/services/shape_detection/face_detection_provider_mac.mm +++ b/chromium/services/shape_detection/face_detection_provider_mac.mm @@ -7,6 +7,7 @@ #include <memory> #include <utility> +#include "base/mac/mac_util.h" #include "mojo/public/cpp/bindings/strong_binding.h" #include "services/shape_detection/face_detection_impl_mac.h" #include "services/shape_detection/face_detection_impl_mac_vision.h" @@ -28,7 +29,7 @@ void FaceDetectionProviderMac::CreateFaceDetection( mojom::FaceDetectionRequest request, mojom::FaceDetectorOptionsPtr options) { // Vision Framework needs at least MAC OS X 10.13. - if (@available(macOS 10.13, *)) { + if (base::mac::IsAtLeastOS10_13()) { // Vision is more accurate than Core Image Framework, but it also needs more // processing time. if (!options->fast_mode) { |