Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Issue 2241263005: Revert of Implement BluetoothGattNotifySession::Stop on Android (Closed)

Created:
4 years, 4 months ago by Guido Urdaneta
Modified:
4 years, 4 months ago
Reviewers:
rkc, ortuno, sacomoto, tommyt, msarda
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, haraken, jam, ortuno+watch_chromium.org, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Implement BluetoothGattNotifySession::Stop on Android (patchset #33 id:640001 of https://codereview.chromium.org/2051333004/ ) Reason for revert: Suspect of breaking https://build.chromium.org/p/chromium.mac/builders/Mac10.11%20Tests/builds/2450 [345/345] BluetoothRemoteGattCharacteristicTest.GattCharacteristicValueChanged (TIMED OUT) 6 tests timed out: BluetoothRemoteGattCharacteristicTest.GattCharacteristicValueChanged (../../device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:1931) BluetoothRemoteGattCharacteristicTest.StartNotifySession (../../device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:1026) BluetoothRemoteGattCharacteristicTest.StartNotifySession_Multiple (../../device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:1067) BluetoothRemoteGattCharacteristicTest.StartNotifySession_OnIndicate (../../device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:1039) BluetoothRemoteGattCharacteristicTest.StartNotifySession_OnNotifyAndIndicate (../../device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:1054) BluetoothRemoteGattCharacteristicTest.StartNotifySession_Reentrant_Success_Success (../../device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc:1217) Original issue's description: > Implement BluetoothGattNotifySession::Stop on Android > > This change enables the stopNotifications function for remote GATT > characteristics on Android. In order to do so, two distinct refactorings have been done; > > 1) The session classes have been simplified so that platform specific versions are no longer required. All code that previously used BluetoothGattNotifySession[Mac|Win|BlueZ] now simply use the base BluetoothGattNotifySession class. > > 2) BluetoothRemoteGattCharacteristic::StartNotifySession and StopNotifySession have been rewritten so that all the code for keeping track of the different session objects and the notification state sits in the base class. Inheriting classes should no longer override these two functions, but instead override the much simpler SubscribeToNotifications and UnsubscribeFromNotifications. > > BUG=584370 > > Committed: https://crrev.com/d41af3adfd8500c81c827ab03ed2736909cf1ee8 > Cr-Commit-Position: refs/heads/master@{#412498} TBR=ortuno@chromium.org,rkc@chromium.org,msarda@chromium.org,sacomoto@chromium.org,tommyt@opera.com # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=584370 Committed: https://crrev.com/ff985814a5a6df794c2be89fcbb3d789a8f31dc2 Cr-Commit-Position: refs/heads/master@{#412557}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+646 lines, -1515 lines) Patch
M chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M components/proximity_auth/ble/bluetooth_low_energy_connection_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/proximity_auth/ble/bluetooth_low_energy_weave_client_connection_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M device/bluetooth/BUILD.gn View 2 chunks +8 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth.gyp View 2 chunks +8 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_gatt_notify_session.h View 2 chunks +7 lines, -21 lines 0 comments Download
M device/bluetooth/bluetooth_gatt_notify_session.cc View 1 chunk +2 lines, -38 lines 0 comments Download
A device/bluetooth/bluetooth_gatt_notify_session_android.h View 1 chunk +45 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_gatt_notify_session_android.cc View 1 chunk +30 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_gatt_notify_session_mac.h View 1 chunk +35 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_gatt_notify_session_mac.mm View 1 chunk +28 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_gatt_notify_session_win.h View 1 chunk +35 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_gatt_notify_session_win.cc View 1 chunk +28 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic.h View 4 chunks +11 lines, -136 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic.cc View 2 chunks +3 lines, -347 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_android.h View 3 chunks +15 lines, -9 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_android.cc View 6 chunks +94 lines, -40 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h View 1 chunk +0 lines, -9 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm View 4 chunks +4 lines, -20 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc View 7 chunks +3 lines, -642 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_win.h View 2 chunks +0 lines, -11 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_win.cc View 5 chunks +4 lines, -26 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_descriptor_android.cc View 1 chunk +1 line, -0 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_service.h View 1 chunk +1 line, -0 lines 0 comments Download
A device/bluetooth/bluez/bluetooth_gatt_notify_session_bluez.h View 1 chunk +78 lines, -0 lines 0 comments Download
A device/bluetooth/bluez/bluetooth_gatt_notify_session_bluez.cc View 1 chunk +135 lines, -0 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_remote_gatt_characteristic_bluez.h View 2 chunks +6 lines, -16 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_remote_gatt_characteristic_bluez.cc View 5 chunks +42 lines, -56 lines 0 comments Download
M device/bluetooth/test/bluetooth_test.h View 3 chunks +0 lines, -24 lines 0 comments Download
M device/bluetooth/test/bluetooth_test.cc View 2 chunks +5 lines, -54 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_android.h View 1 chunk +0 lines, -5 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_android.cc View 1 chunk +0 lines, -33 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_gatt_characteristic.h View 1 chunk +0 lines, -12 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_gatt_notify_session.h View 1 chunk +2 lines, -1 line 0 comments Download
M device/bluetooth/test/mock_bluetooth_gatt_notify_session.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
Guido Urdaneta
Created Revert of Implement BluetoothGattNotifySession::Stop on Android
4 years, 4 months ago (2016-08-17 16:38:43 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2241263005/1
4 years, 4 months ago (2016-08-17 16:39:03 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-17 16:40:17 UTC) #5
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 16:43:28 UTC) #7
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/ff985814a5a6df794c2be89fcbb3d789a8f31dc2
Cr-Commit-Position: refs/heads/master@{#412557}

Powered by Google App Engine
This is Rietveld 408576698