summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2018-07-06 15:52:51 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2018-07-06 14:24:45 +0000
commitc67d3d4a83a3be8f98a8ddf098e58191da0a2165 (patch)
tree7efffaea5eb3c5c0b7e3969ccaea03fde18dce65
parent30a333f2b8649ccd9babb78a7b1e8057d03312a3 (diff)
downloadqtwebengine-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.mm3
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) {