Commit 2940f6de authored by Elly Fong-Jones's avatar Elly Fong-Jones Committed by Commit Bot

mac newsdk: don't try to use kCWScanKeyMerge on 10.15 SDK

The symbol is no longer present at all; just hack use of it out for
now.

Bug: 973128
Change-Id: I39bc4fcfa6a734ac47e2a5237eb35e53a7a6370d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1906333Reviewed-by: default avatarMatt Reynolds <mattreynolds@chromium.org>
Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#714506}
parent a891c0e9
......@@ -21,7 +21,13 @@
#include "services/device/geolocation/wifi_data_provider_common.h"
#include "services/device/geolocation/wifi_data_provider_manager.h"
#if !defined(MAC_OS_X_VERSION_10_15)
// This API is so deprecated that this symbol is no longer present at all in the
// 10.15 SDK. For the moment, hack this functionality out entirely when building
// with the 10.15 SDK.
// https://crbug.com/1022821
extern "C" NSString* const kCWScanKeyMerge;
#endif
@interface CWInterface (Private)
- (NSArray*)scanForNetworksWithParameters:(NSDictionary*)params
......@@ -47,7 +53,11 @@ bool CoreWlanApi::GetAccessPointData(WifiData::AccessPointDataSet* data) {
@autoreleasepool { // Initialize the scan parameters with scan key merging
// disabled, so we get
// every AP listed in the scan without any SSID de-duping logic.
#if defined(MAC_OS_X_VERSION_10_15)
NSDictionary* params = @{};
#else
NSDictionary* params = @{kCWScanKeyMerge : @NO};
#endif
NSSet* supported_interfaces = [CWInterface interfaceNames];
NSUInteger interface_error_count = 0;
......
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