Commit 30905c1d authored by Avi Drissman's avatar Avi Drissman Committed by Commit Bot

Add note for the proper API to use.

Bug: 1053786, 1054063
Tbr: mattm@chromium.org
Change-Id: I5d681515d55737198caaad3e3c183904be260f75
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2064829Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#742736}
parent bab8f5b3
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#include "base/mac/foundation_util.h" #include "base/mac/foundation_util.h"
#include "base/mac/scoped_cftyperef.h" #include "base/mac/scoped_cftyperef.h"
#include "base/mac/scoped_nsobject.h" #include "base/mac/scoped_nsobject.h"
#include "base/mac/sdk_forward_declarations.h"
#include "base/macros.h" #include "base/macros.h"
#include "base/single_thread_task_runner.h" #include "base/single_thread_task_runner.h"
#include "base/strings/sys_string_conversions.h" #include "base/strings/sys_string_conversions.h"
...@@ -416,6 +415,11 @@ void WiFiServiceMac::SetEventObservers( ...@@ -416,6 +415,11 @@ void WiFiServiceMac::SetEventObservers(
// Given the choice between a symbol that is marked as "deprecated" in the // Given the choice between a symbol that is marked as "deprecated" in the
// docs and actually removed from the SDK, and an undocumented string that // docs and actually removed from the SDK, and an undocumented string that
// is secretly broadcast, the string is the safer choice. // is secretly broadcast, the string is the safer choice.
//
// This is not a supported way to do this. The correct way to do this is the
// -[CWWiFiClient startMonitoringEventWithType:error:] API:
// https://developer.apple.com/documentation/corewlan/cwwificlient/1512439-startmonitoringeventwithtype?language=objc
// TODO(avi): Use this API. https://crbug.com/1054063
wlan_observer_ = [[NSNotificationCenter defaultCenter] wlan_observer_ = [[NSNotificationCenter defaultCenter]
addObserverForName:@"com.apple.coreWLAN.notification.ssid.legacy" addObserverForName:@"com.apple.coreWLAN.notification.ssid.legacy"
object:nil object:nil
......
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