зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1123077: Protect PROPERTY_REMOTE_VERSION_INFO by ANDROID_VERSION, r=shuang
This commit is contained in:
Родитель
4311a24275
Коммит
a01f7739b4
|
@ -197,8 +197,11 @@ Convert(bt_property_type_t aIn, BluetoothPropertyType& aOut)
|
|||
CONVERT(BT_PROPERTY_ADAPTER_DISCOVERY_TIMEOUT,
|
||||
PROPERTY_ADAPTER_DISCOVERY_TIMEOUT),
|
||||
CONVERT(BT_PROPERTY_REMOTE_FRIENDLY_NAME, PROPERTY_REMOTE_FRIENDLY_NAME),
|
||||
CONVERT(BT_PROPERTY_REMOTE_RSSI, PROPERTY_REMOTE_RSSI),
|
||||
CONVERT(BT_PROPERTY_REMOTE_RSSI, PROPERTY_REMOTE_RSSI)
|
||||
#if ANDROID_VERSION >= 18
|
||||
,
|
||||
CONVERT(BT_PROPERTY_REMOTE_VERSION_INFO,PROPERTY_REMOTE_VERSION_INFO)
|
||||
#endif
|
||||
};
|
||||
if (aIn == BT_PROPERTY_REMOTE_DEVICE_TIMESTAMP) {
|
||||
/* This case is handled separately to not populate
|
||||
|
|
|
@ -195,8 +195,11 @@ Convert(bt_property_type_t aIn, BluetoothPropertyType& aOut)
|
|||
CONVERT(BT_PROPERTY_ADAPTER_DISCOVERY_TIMEOUT,
|
||||
PROPERTY_ADAPTER_DISCOVERY_TIMEOUT),
|
||||
CONVERT(BT_PROPERTY_REMOTE_FRIENDLY_NAME, PROPERTY_REMOTE_FRIENDLY_NAME),
|
||||
CONVERT(BT_PROPERTY_REMOTE_RSSI, PROPERTY_REMOTE_RSSI),
|
||||
CONVERT(BT_PROPERTY_REMOTE_RSSI, PROPERTY_REMOTE_RSSI)
|
||||
#if ANDROID_VERSION >= 18
|
||||
,
|
||||
CONVERT(BT_PROPERTY_REMOTE_VERSION_INFO,PROPERTY_REMOTE_VERSION_INFO)
|
||||
#endif
|
||||
};
|
||||
if (aIn == BT_PROPERTY_REMOTE_DEVICE_TIMESTAMP) {
|
||||
/* This case is handled separately to not populate
|
||||
|
|
Загрузка…
Ссылка в новой задаче