summaryrefslogtreecommitdiff
path: root/chromium/services/shape_detection/barcode_detection_impl_mac.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/services/shape_detection/barcode_detection_impl_mac.mm')
-rw-r--r--chromium/services/shape_detection/barcode_detection_impl_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/services/shape_detection/barcode_detection_impl_mac.mm b/chromium/services/shape_detection/barcode_detection_impl_mac.mm
index 1c198b8b0fb..86e07cabf49 100644
--- a/chromium/services/shape_detection/barcode_detection_impl_mac.mm
+++ b/chromium/services/shape_detection/barcode_detection_impl_mac.mm
@@ -19,7 +19,7 @@ namespace shape_detection {
void BarcodeDetectionImpl::Create(
shape_detection::mojom::BarcodeDetectionRequest request) {
// Barcode detection needs at least MAC OS X 10.10.
- if (@available(macOS 10.10, *)) {
+ if (base::mac::IsAtLeastOS10_10()) {
mojo::MakeStrongBinding(base::MakeUnique<BarcodeDetectionImplMac>(),
std::move(request));
}