|
@@ -6,11 +6,51 @@ Subject: mas_no_private_api.patch
|
|
|
Guard usages in blink of private Mac APIs by MAS_BUILD, so they can be
|
|
|
excluded for people who want to submit their apps to the Mac App store.
|
|
|
|
|
|
+diff --git a/content/browser/accessibility/accessibility_tree_formatter_mac.mm b/content/browser/accessibility/accessibility_tree_formatter_mac.mm
|
|
|
+index 177a7321153f68008f7c122b4f73e200feed72e9..f03c4fbad79ea829c440f13885a9005a46bc0640 100644
|
|
|
+--- a/content/browser/accessibility/accessibility_tree_formatter_mac.mm
|
|
|
++++ b/content/browser/accessibility/accessibility_tree_formatter_mac.mm
|
|
|
+@@ -449,7 +449,7 @@ base::Value AccessibilityTreeFormatterMac::PopulateObject(
|
|
|
+ 0 == strcmp([value objCType], @encode(NSRange))) {
|
|
|
+ return PopulateRange([value rangeValue]);
|
|
|
+ }
|
|
|
+-
|
|
|
++#ifndef MAS_BUILD
|
|
|
+ // AXTextMarker
|
|
|
+ if (content::IsAXTextMarker(value)) {
|
|
|
+ return PopulateTextPosition(content::AXTextMarkerToPosition(value).get(),
|
|
|
+@@ -460,7 +460,7 @@ base::Value AccessibilityTreeFormatterMac::PopulateObject(
|
|
|
+ if (content::IsAXTextMarkerRange(value)) {
|
|
|
+ return PopulateTextMarkerRange(value, line_indexes_map);
|
|
|
+ }
|
|
|
+-
|
|
|
++#endif
|
|
|
+ // Accessible object
|
|
|
+ if ([value isKindOfClass:[BrowserAccessibilityCocoa class]]) {
|
|
|
+ return base::Value(NodeToLineIndex(value, line_indexes_map));
|
|
|
+@@ -511,7 +511,7 @@ base::Value AccessibilityTreeFormatterMac::PopulateTextPosition(
|
|
|
+ kConstValuePrefix + affinity);
|
|
|
+ return set;
|
|
|
+ }
|
|
|
+-
|
|
|
++#ifndef MAS_BUILD
|
|
|
+ base::Value AccessibilityTreeFormatterMac::PopulateTextMarkerRange(
|
|
|
+ id object,
|
|
|
+ const LineIndexesMap& line_indexes_map) const {
|
|
|
+@@ -526,7 +526,7 @@ base::Value AccessibilityTreeFormatterMac::PopulateTextMarkerRange(
|
|
|
+ dict.SetPath("focus", PopulateTextPosition(range.focus(), line_indexes_map));
|
|
|
+ return dict;
|
|
|
+ }
|
|
|
+-
|
|
|
++#endif
|
|
|
+ base::Value AccessibilityTreeFormatterMac::PopulateArray(
|
|
|
+ NSArray* node_array,
|
|
|
+ const LineIndexesMap& line_indexes_map) const {
|
|
|
diff --git a/content/browser/accessibility/browser_accessibility_cocoa.h b/content/browser/accessibility/browser_accessibility_cocoa.h
|
|
|
-index 5124b17f020849671a7f03d92bda052eff84d169..f9730f71c122965f7ce7815a1b9a7b32f8a224f0 100644
|
|
|
+index 8e7b652d2eb51ca20672d25465c2f2a42092086d..1bb0d2b7c9ab7a073da8454e328636b0a00277e3 100644
|
|
|
--- a/content/browser/accessibility/browser_accessibility_cocoa.h
|
|
|
+++ b/content/browser/accessibility/browser_accessibility_cocoa.h
|
|
|
-@@ -112,7 +112,9 @@ struct AXTextEdit {
|
|
|
+@@ -124,7 +124,9 @@ BrowserAccessibilityPosition::AXRangeType AXTextMarkerRangeToRange(id);
|
|
|
@property(nonatomic, readonly) NSNumber* enabled;
|
|
|
// Returns a text marker that points to the last character in the document that
|
|
|
// can be selected with Voiceover.
|
|
@@ -20,7 +60,7 @@ index 5124b17f020849671a7f03d92bda052eff84d169..f9730f71c122965f7ce7815a1b9a7b32
|
|
|
@property(nonatomic, readonly) NSNumber* expanded;
|
|
|
@property(nonatomic, readonly) NSNumber* focused;
|
|
|
@property(nonatomic, readonly) NSNumber* grabbed;
|
|
|
-@@ -123,7 +125,9 @@ struct AXTextEdit {
|
|
|
+@@ -135,7 +137,9 @@ BrowserAccessibilityPosition::AXRangeType AXTextMarkerRangeToRange(id);
|
|
|
@property(nonatomic, readonly, getter=isIgnored) BOOL ignored;
|
|
|
// Index of a row, column, or tree item.
|
|
|
@property(nonatomic, readonly) NSNumber* index;
|
|
@@ -30,7 +70,7 @@ index 5124b17f020849671a7f03d92bda052eff84d169..f9730f71c122965f7ce7815a1b9a7b32
|
|
|
@property(nonatomic, readonly) NSString* invalid;
|
|
|
@property(nonatomic, readonly) NSNumber* isMultiSelectable;
|
|
|
@property(nonatomic, readonly) NSString* placeholderValue;
|
|
|
-@@ -146,14 +150,18 @@ struct AXTextEdit {
|
|
|
+@@ -158,14 +162,18 @@ BrowserAccessibilityPosition::AXRangeType AXTextMarkerRangeToRange(id);
|
|
|
// The object is selected as a whole.
|
|
|
@property(nonatomic, readonly) NSNumber* selected;
|
|
|
@property(nonatomic, readonly) NSArray* selectedChildren;
|
|
@@ -50,10 +90,10 @@ index 5124b17f020849671a7f03d92bda052eff84d169..f9730f71c122965f7ce7815a1b9a7b32
|
|
|
// is concerned.
|
|
|
@property(nonatomic, readonly) NSString* subrole;
|
|
|
diff --git a/content/browser/accessibility/browser_accessibility_cocoa.mm b/content/browser/accessibility/browser_accessibility_cocoa.mm
|
|
|
-index a35b6dae73540518443a4b4d5745178e248c64f0..38ca03b2365e0d3a2c15abda6fb05256851deb57 100644
|
|
|
+index ce1d034e40fbf907c18684711c36d8f428d174ff..5fd67af11106ef1e0bb093078d78d6451651d418 100644
|
|
|
--- a/content/browser/accessibility/browser_accessibility_cocoa.mm
|
|
|
+++ b/content/browser/accessibility/browser_accessibility_cocoa.mm
|
|
|
-@@ -206,6 +206,7 @@ NSString* const
|
|
|
+@@ -208,6 +208,7 @@ NSString* const
|
|
|
NSString* const NSAccessibilityLengthForTextMarkerRangeParameterizedAttribute =
|
|
|
@"AXLengthForTextMarkerRange";
|
|
|
|
|
@@ -61,7 +101,7 @@ index a35b6dae73540518443a4b4d5745178e248c64f0..38ca03b2365e0d3a2c15abda6fb05256
|
|
|
// Private attributes that can be used for testing text markers, e.g. in dump
|
|
|
// tree tests.
|
|
|
NSString* const
|
|
|
-@@ -217,6 +218,7 @@ NSString* const
|
|
|
+@@ -219,6 +220,7 @@ NSString* const
|
|
|
NSString* const
|
|
|
NSAccessibilityTextMarkerNodeDebugDescriptionParameterizedAttribute =
|
|
|
@"AXTextMarkerNodeDebugDescription";
|
|
@@ -69,7 +109,7 @@ index a35b6dae73540518443a4b4d5745178e248c64f0..38ca03b2365e0d3a2c15abda6fb05256
|
|
|
|
|
|
// Other private attributes.
|
|
|
NSString* const NSAccessibilitySelectTextWithCriteriaParameterizedAttribute =
|
|
|
-@@ -240,6 +242,7 @@ NSDictionary* attributeToMethodNameMap = nil;
|
|
|
+@@ -242,6 +244,7 @@ NSDictionary* attributeToMethodNameMap = nil;
|
|
|
// VoiceOver uses -1 to mean "no limit" for AXResultsLimit.
|
|
|
const int kAXResultsLimitNoLimit = -1;
|
|
|
|
|
@@ -77,7 +117,7 @@ index a35b6dae73540518443a4b4d5745178e248c64f0..38ca03b2365e0d3a2c15abda6fb05256
|
|
|
extern "C" {
|
|
|
|
|
|
// The following are private accessibility APIs required for cursor navigation
|
|
|
-@@ -468,6 +471,7 @@ NSAttributedString* GetAttributedTextForTextMarkerRange(id marker_range) {
|
|
|
+@@ -470,6 +473,7 @@ NSAttributedString* GetAttributedTextForTextMarkerRange(id marker_range) {
|
|
|
AddMisspelledTextAttributes(ax_range, attributed_text);
|
|
|
return attributed_text;
|
|
|
}
|
|
@@ -85,7 +125,24 @@ index a35b6dae73540518443a4b4d5745178e248c64f0..38ca03b2365e0d3a2c15abda6fb05256
|
|
|
|
|
|
// Returns an autoreleased copy of the AXNodeData's attribute.
|
|
|
NSString* NSStringForStringAttribute(BrowserAccessibility* browserAccessibility,
|
|
|
-@@ -761,7 +765,9 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
|
|
+@@ -727,6 +731,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
|
|
+ #define NSAccessibilityLanguageAttribute @"AXLanguage"
|
|
|
+ #endif
|
|
|
+
|
|
|
++#ifndef MAS_BUILD
|
|
|
+ bool content::IsAXTextMarker(id object) {
|
|
|
+ if (object == nil)
|
|
|
+ return false;
|
|
|
+@@ -755,7 +760,7 @@ BrowserAccessibilityPosition::AXRangeType
|
|
|
+ content::AXTextMarkerRangeToRange(id text_marker_range) {
|
|
|
+ return CreateRangeFromTextMarkerRange(text_marker_range);
|
|
|
+ }
|
|
|
+-
|
|
|
++#endif
|
|
|
+ @implementation BrowserAccessibilityCocoa
|
|
|
+
|
|
|
+ + (void)initialize {
|
|
|
+@@ -792,7 +797,9 @@ content::AXTextMarkerRangeToRange(id text_marker_range) {
|
|
|
{NSAccessibilityEditableAncestorAttribute, @"editableAncestor"},
|
|
|
{NSAccessibilityElementBusyAttribute, @"elementBusy"},
|
|
|
{NSAccessibilityEnabledAttribute, @"enabled"},
|
|
@@ -95,7 +152,7 @@ index a35b6dae73540518443a4b4d5745178e248c64f0..38ca03b2365e0d3a2c15abda6fb05256
|
|
|
{NSAccessibilityExpandedAttribute, @"expanded"},
|
|
|
{NSAccessibilityFocusableAncestorAttribute, @"focusableAncestor"},
|
|
|
{NSAccessibilityFocusedAttribute, @"focused"},
|
|
|
-@@ -773,8 +779,10 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
|
|
+@@ -804,8 +811,10 @@ content::AXTextMarkerRangeToRange(id text_marker_range) {
|
|
|
{NSAccessibilityHighestEditableAncestorAttribute,
|
|
|
@"highestEditableAncestor"},
|
|
|
{NSAccessibilityIndexAttribute, @"index"},
|
|
@@ -106,7 +163,7 @@ index a35b6dae73540518443a4b4d5745178e248c64f0..38ca03b2365e0d3a2c15abda6fb05256
|
|
|
{NSAccessibilityInvalidAttribute, @"invalid"},
|
|
|
{NSAccessibilityIsMultiSelectableAttribute, @"isMultiSelectable"},
|
|
|
{NSAccessibilityLanguageAttribute, @"language"},
|
|
|
-@@ -796,13 +804,17 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
|
|
+@@ -827,13 +836,17 @@ content::AXTextMarkerRangeToRange(id text_marker_range) {
|
|
|
{NSAccessibilityRowsAttribute, @"rows"},
|
|
|
// TODO(aboxhall): expose
|
|
|
// NSAccessibilityServesAsTitleForUIElementsAttribute
|
|
@@ -124,7 +181,7 @@ index a35b6dae73540518443a4b4d5745178e248c64f0..38ca03b2365e0d3a2c15abda6fb05256
|
|
|
{NSAccessibilitySizeAttribute, @"size"},
|
|
|
{NSAccessibilitySortDirectionAttribute, @"sortDirection"},
|
|
|
{NSAccessibilitySubroleAttribute, @"subrole"},
|
|
|
-@@ -1290,6 +1302,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
|
|
+@@ -1321,6 +1334,7 @@ content::AXTextMarkerRangeToRange(id text_marker_range) {
|
|
|
ax::mojom::Restriction::kDisabled];
|
|
|
}
|
|
|
|
|
@@ -132,7 +189,7 @@ index a35b6dae73540518443a4b4d5745178e248c64f0..38ca03b2365e0d3a2c15abda6fb05256
|
|
|
// Returns a text marker that points to the last character in the document that
|
|
|
// can be selected with VoiceOver.
|
|
|
- (id)endTextMarker {
|
|
|
-@@ -1300,6 +1313,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
|
|
+@@ -1331,6 +1345,7 @@ content::AXTextMarkerRangeToRange(id text_marker_range) {
|
|
|
BrowserAccessibilityPositionInstance position = root->CreatePositionAt(0);
|
|
|
return CreateTextMarker(position->CreatePositionAtEndOfAnchor());
|
|
|
}
|
|
@@ -140,7 +197,7 @@ index a35b6dae73540518443a4b4d5745178e248c64f0..38ca03b2365e0d3a2c15abda6fb05256
|
|
|
|
|
|
- (NSNumber*)expanded {
|
|
|
if (![self instanceActive])
|
|
|
-@@ -1449,6 +1463,8 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
|
|
+@@ -1480,6 +1495,8 @@ content::AXTextMarkerRangeToRange(id text_marker_range) {
|
|
|
return nil;
|
|
|
}
|
|
|
|
|
@@ -149,7 +206,7 @@ index a35b6dae73540518443a4b4d5745178e248c64f0..38ca03b2365e0d3a2c15abda6fb05256
|
|
|
- (NSNumber*)insertionPointLineNumber {
|
|
|
if (![self instanceActive])
|
|
|
return nil;
|
|
|
-@@ -1471,6 +1487,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
|
|
+@@ -1502,6 +1519,7 @@ content::AXTextMarkerRangeToRange(id text_marker_range) {
|
|
|
caretPosition->AsTextPosition()->text_offset());
|
|
|
return @(std::distance(lineBreaks.begin(), iterator));
|
|
|
}
|
|
@@ -157,7 +214,7 @@ index a35b6dae73540518443a4b4d5745178e248c64f0..38ca03b2365e0d3a2c15abda6fb05256
|
|
|
|
|
|
// Returns whether or not this node should be ignored in the
|
|
|
// accessibility tree.
|
|
|
-@@ -2147,6 +2164,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
|
|
+@@ -2178,6 +2196,7 @@ content::AXTextMarkerRangeToRange(id text_marker_range) {
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
@@ -165,7 +222,7 @@ index a35b6dae73540518443a4b4d5745178e248c64f0..38ca03b2365e0d3a2c15abda6fb05256
|
|
|
- (NSString*)selectedText {
|
|
|
if (![self instanceActive])
|
|
|
return nil;
|
|
|
-@@ -2158,11 +2176,13 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
|
|
+@@ -2189,11 +2208,13 @@ content::AXTextMarkerRangeToRange(id text_marker_range) {
|
|
|
return nil;
|
|
|
return base::SysUTF16ToNSString(range.GetText());
|
|
|
}
|
|
@@ -179,7 +236,7 @@ index a35b6dae73540518443a4b4d5745178e248c64f0..38ca03b2365e0d3a2c15abda6fb05256
|
|
|
- (NSValue*)selectedTextRange {
|
|
|
if (![self instanceActive])
|
|
|
return nil;
|
|
|
-@@ -2183,12 +2203,15 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
|
|
+@@ -2214,12 +2235,15 @@ content::AXTextMarkerRangeToRange(id text_marker_range) {
|
|
|
int selLength = range.GetText().length();
|
|
|
return [NSValue valueWithRange:NSMakeRange(selStart, selLength)];
|
|
|
}
|
|
@@ -195,7 +252,7 @@ index a35b6dae73540518443a4b4d5745178e248c64f0..38ca03b2365e0d3a2c15abda6fb05256
|
|
|
|
|
|
- (NSValue*)size {
|
|
|
if (![self instanceActive])
|
|
|
-@@ -2221,6 +2244,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
|
|
+@@ -2252,6 +2276,7 @@ content::AXTextMarkerRangeToRange(id text_marker_range) {
|
|
|
return nil;
|
|
|
}
|
|
|
|
|
@@ -203,7 +260,7 @@ index a35b6dae73540518443a4b4d5745178e248c64f0..38ca03b2365e0d3a2c15abda6fb05256
|
|
|
// Returns a text marker that points to the first character in the document that
|
|
|
// can be selected with VoiceOver.
|
|
|
- (id)startTextMarker {
|
|
|
-@@ -2231,6 +2255,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
|
|
+@@ -2262,6 +2287,7 @@ content::AXTextMarkerRangeToRange(id text_marker_range) {
|
|
|
BrowserAccessibilityPositionInstance position = root->CreatePositionAt(0);
|
|
|
return CreateTextMarker(position->CreatePositionAtStartOfAnchor());
|
|
|
}
|
|
@@ -211,7 +268,7 @@ index a35b6dae73540518443a4b4d5745178e248c64f0..38ca03b2365e0d3a2c15abda6fb05256
|
|
|
|
|
|
// Returns a subrole based upon the role.
|
|
|
- (NSString*)subrole {
|
|
|
-@@ -2553,11 +2578,13 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
|
|
+@@ -2584,11 +2610,13 @@ content::AXTextMarkerRangeToRange(id text_marker_range) {
|
|
|
NSMutableAttributedString* attributedInnerText =
|
|
|
[[[NSMutableAttributedString alloc]
|
|
|
initWithString:base::SysUTF16ToNSString(innerText)] autorelease];
|
|
@@ -225,7 +282,7 @@ index a35b6dae73540518443a4b4d5745178e248c64f0..38ca03b2365e0d3a2c15abda6fb05256
|
|
|
|
|
|
return [attributedInnerText attributedSubstringFromRange:range];
|
|
|
}
|
|
|
-@@ -2661,9 +2688,8 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
|
|
+@@ -2692,9 +2720,8 @@ content::AXTextMarkerRangeToRange(id text_marker_range) {
|
|
|
return ToBrowserAccessibilityCocoa(cell);
|
|
|
}
|
|
|
|
|
@@ -237,7 +294,7 @@ index a35b6dae73540518443a4b4d5745178e248c64f0..38ca03b2365e0d3a2c15abda6fb05256
|
|
|
BrowserAccessibilityPositionInstance position =
|
|
|
CreatePositionFromTextMarker(parameter);
|
|
|
if (!position->IsNullPosition())
|
|
|
-@@ -2976,6 +3002,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
|
|
+@@ -3007,6 +3034,7 @@ content::AXTextMarkerRangeToRange(id text_marker_range) {
|
|
|
|
|
|
return CreateTextMarker(root->CreatePositionAt(index));
|
|
|
}
|
|
@@ -245,7 +302,7 @@ index a35b6dae73540518443a4b4d5745178e248c64f0..38ca03b2365e0d3a2c15abda6fb05256
|
|
|
|
|
|
if ([attribute isEqualToString:
|
|
|
NSAccessibilityBoundsForRangeParameterizedAttribute]) {
|
|
|
-@@ -3011,6 +3038,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
|
|
+@@ -3042,6 +3070,7 @@ content::AXTextMarkerRangeToRange(id text_marker_range) {
|
|
|
return nil;
|
|
|
}
|
|
|
|
|
@@ -253,7 +310,7 @@ index a35b6dae73540518443a4b4d5745178e248c64f0..38ca03b2365e0d3a2c15abda6fb05256
|
|
|
if ([attribute
|
|
|
isEqualToString:
|
|
|
NSAccessibilityLineTextMarkerRangeForTextMarkerParameterizedAttribute]) {
|
|
|
-@@ -3125,6 +3153,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
|
|
+@@ -3156,6 +3185,7 @@ content::AXTextMarkerRangeToRange(id text_marker_range) {
|
|
|
|
|
|
return @(child->GetIndexInParent());
|
|
|
}
|
|
@@ -314,10 +371,10 @@ index 28ca1646af0b0cce40d27baec71cbe65adc334fa..bae65c1f485bc02eb9ef2ebf7018af4a
|
|
|
|
|
|
} // namespace
|
|
|
diff --git a/device/bluetooth/bluetooth_adapter_mac.mm b/device/bluetooth/bluetooth_adapter_mac.mm
|
|
|
-index 0b2c4e6d169b08d82d2359576a29e2f7d2b09dcf..7b5fbbae1f9b2ade0c07360bd3fecda129a0c95b 100644
|
|
|
+index b29b68be6fa6b0329ed03c2d9011690c5e6f83c5..3a8aca70701534d19cdf1655da18811473e42ea4 100644
|
|
|
--- a/device/bluetooth/bluetooth_adapter_mac.mm
|
|
|
+++ b/device/bluetooth/bluetooth_adapter_mac.mm
|
|
|
-@@ -35,6 +35,7 @@
|
|
|
+@@ -36,6 +36,7 @@
|
|
|
#include "device/bluetooth/bluetooth_low_energy_peripheral_manager_delegate.h"
|
|
|
#include "device/bluetooth/bluetooth_socket_mac.h"
|
|
|
|
|
@@ -325,7 +382,7 @@ index 0b2c4e6d169b08d82d2359576a29e2f7d2b09dcf..7b5fbbae1f9b2ade0c07360bd3fecda1
|
|
|
extern "C" {
|
|
|
// Undocumented IOBluetooth Preference API [1]. Used by `blueutil` [2] and
|
|
|
// `Karabiner` [3] to programmatically control the Bluetooth state. Calling the
|
|
|
-@@ -48,6 +49,7 @@ extern "C" {
|
|
|
+@@ -49,6 +50,7 @@ extern "C" {
|
|
|
// [4] https://support.apple.com/kb/PH25091
|
|
|
void IOBluetoothPreferenceSetControllerPowerState(int state);
|
|
|
}
|
|
@@ -333,7 +390,7 @@ index 0b2c4e6d169b08d82d2359576a29e2f7d2b09dcf..7b5fbbae1f9b2ade0c07360bd3fecda1
|
|
|
|
|
|
namespace {
|
|
|
|
|
|
-@@ -117,8 +119,10 @@ BluetoothAdapterMac::BluetoothAdapterMac()
|
|
|
+@@ -118,8 +120,10 @@ BluetoothAdapterMac::BluetoothAdapterMac()
|
|
|
controller_state_function_(
|
|
|
base::BindRepeating(&BluetoothAdapterMac::GetHostControllerState,
|
|
|
base::Unretained(this))),
|
|
@@ -344,7 +401,7 @@ index 0b2c4e6d169b08d82d2359576a29e2f7d2b09dcf..7b5fbbae1f9b2ade0c07360bd3fecda1
|
|
|
should_update_name_(true),
|
|
|
classic_discovery_manager_(
|
|
|
BluetoothDiscoveryManagerMac::CreateClassic(this)),
|
|
|
-@@ -303,8 +307,12 @@ base::WeakPtr<BluetoothAdapter> BluetoothAdapterMac::GetWeakPtr() {
|
|
|
+@@ -304,8 +308,12 @@ base::WeakPtr<BluetoothAdapter> BluetoothAdapterMac::GetWeakPtr() {
|
|
|
}
|
|
|
|
|
|
bool BluetoothAdapterMac::SetPoweredImpl(bool powered) {
|