|
|
Chromium Code Reviews
DescriptionDevices shoule not be found by Android enrollment app after successful enrollment.
Changes in this cl,
1. Remove SetName() in BluetoothHostPairingController. The name of the
Apapter has been set in BluetoothAdapterBlueZ::Init().
2. Add UUID filter for device discovery when automatically
enrollment. This will make sure the device can only be found during OOBE.
It will not be found by the Android enrollment app after login if the
user set the device as discover-able manually.
BUG=720774
Review-Url: https://codereview.chromium.org/2888033002
Cr-Commit-Position: refs/heads/master@{#474487}
Committed: https://chromium.googlesource.com/chromium/src/+/6872d3f67f6b70462aedcd20417c8ab31455f12c
Patch Set 1 #
Total comments: 3
Patch Set 2 : Detect devices by UUID instead of. #Patch Set 3 : Remove useless code. #Patch Set 4 : nits #Patch Set 5 : Add UUID as filter when detecting devices. #
Messages
Total messages: 40 (31 generated)
The CQ bit was checked by minch@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Devices shoule not be found by Android enrollment app after successful enrollment. BUG=720774 ========== to ========== Devices shoule not be found by Android enrollment app after successful enrollment. BUG=720774 ==========
minch@chromium.org changed reviewers: + xdai@chromium.org, zork@chromium.org
Hi, zork@ and xdai@, could you help review? Thanks.
zork@google.com changed reviewers: + zork@google.com
We should update the function name to reflect the new behavior, then LGTM https://codereview.chromium.org/2888033002/diff/1/components/pairing/bluetoot... File components/pairing/bluetooth_host_pairing_controller.cc (right): https://codereview.chromium.org/2888033002/diff/1/components/pairing/bluetoot... components/pairing/bluetooth_host_pairing_controller.cc:197: void BluetoothHostPairingController::SetName() { I think a better name for this function would be "UpdateAdapterName"
https://codereview.chromium.org/2888033002/diff/1/components/pairing/bluetoot... File components/pairing/bluetooth_host_pairing_controller.cc (right): https://codereview.chromium.org/2888033002/diff/1/components/pairing/bluetoot... components/pairing/bluetooth_host_pairing_controller.cc:202: if (current_stage_ == STAGE_FINISHED) { Per offline discussion, I would suggest to have a previous_device_name_ variable to record the previous device name before Bootstrapping process and reset to previous_device_name_ after Bootstrapping process. This way we won't accidentally change the device name if someone else has changed the device's name before the Bootstrapping process. https://codereview.chromium.org/2888033002/diff/1/components/pairing/bluetoot... components/pairing/bluetooth_host_pairing_controller.cc:442: SetName(); I think you should reset Bluetooth name for both success enrollment case and all error cases. (for example, the Bootstrapping failed at network configuring stage and then later the user decided to do a manual enrollment, we need to make sure the Chrome OS device Bluetooth device is consistent under all cases.)
The CQ bit was checked by minch@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by minch@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by minch@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-...)
The CQ bit was checked by minch@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
minch@chromium.org changed reviewers: - zork@chromium.org
xdai@, zork@, could you help review? Thanks.
On 2017/05/22 17:11:58, minch1 wrote: > xdai@, zork@, could you help review? Thanks. lgtm Please update the CL description to better describe what you did in this CL.
Description was changed from ========== Devices shoule not be found by Android enrollment app after successful enrollment. BUG=720774 ========== to ========== Devices shoule not be found by Android enrollment app after successful enrollment. Changes in this cl, 1. Remove SetName() in BluetoothHostPairingController. The name of the Apapter has been set in BluetoothAdapterBlueZ::Init(). 2. Add UUID filter for device discovery during automatically enrollment. This will make sure the device can only be found during OOBE. It will not be found by the Android enrollment app after login if the user set the device as discover-able manually. BUG=720774 ==========
Description was changed from ========== Devices shoule not be found by Android enrollment app after successful enrollment. Changes in this cl, 1. Remove SetName() in BluetoothHostPairingController. The name of the Apapter has been set in BluetoothAdapterBlueZ::Init(). 2. Add UUID filter for device discovery during automatically enrollment. This will make sure the device can only be found during OOBE. It will not be found by the Android enrollment app after login if the user set the device as discover-able manually. BUG=720774 ========== to ========== Devices shoule not be found by Android enrollment app after successful enrollment. Changes in this cl, 1. Remove SetName() in BluetoothHostPairingController. The name of the Apapter has been set in BluetoothAdapterBlueZ::Init(). 2. Add UUID filter for device discovery when automatically enrollment.This will make sure the device can only be found during OOBE. It will not be found by the Android enrollment app after login if the user set the device as discover-able manually. BUG=720774 ==========
Description was changed from ========== Devices shoule not be found by Android enrollment app after successful enrollment. Changes in this cl, 1. Remove SetName() in BluetoothHostPairingController. The name of the Apapter has been set in BluetoothAdapterBlueZ::Init(). 2. Add UUID filter for device discovery when automatically enrollment.This will make sure the device can only be found during OOBE. It will not be found by the Android enrollment app after login if the user set the device as discover-able manually. BUG=720774 ========== to ========== Devices shoule not be found by Android enrollment app after successful enrollment. Changes in this cl, 1. Remove SetName() in BluetoothHostPairingController. The name of the Apapter has been set in BluetoothAdapterBlueZ::Init(). 2. Add UUID filter for device discovery when automatically enrollment.This will make sure the device can only be found during OOBE. It will not be found by the Android enrollment app after login if the user set the device as discover-able manually. BUG=720774 ==========
Description was changed from ========== Devices shoule not be found by Android enrollment app after successful enrollment. Changes in this cl, 1. Remove SetName() in BluetoothHostPairingController. The name of the Apapter has been set in BluetoothAdapterBlueZ::Init(). 2. Add UUID filter for device discovery when automatically enrollment.This will make sure the device can only be found during OOBE. It will not be found by the Android enrollment app after login if the user set the device as discover-able manually. BUG=720774 ========== to ========== Devices shoule not be found by Android enrollment app after successful enrollment. Changes in this cl, 1. Remove SetName() in BluetoothHostPairingController. The name of the Apapter has been set in BluetoothAdapterBlueZ::Init(). 2. Add UUID filter for device discovery when automatically enrollment. This will make sure the device can only be found during OOBE. It will not be found by the Android enrollment app after login if the user set the device as discover-able manually. BUG=720774 ==========
minch@chromium.org changed reviewers: + zork@chromium.org - zork@google.com
lgtm
The CQ bit was checked by minch@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from zork@google.com Link to the patchset: https://codereview.chromium.org/2888033002/#ps80001 (title: "Add UUID as filter when detecting devices.")
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 80001, "attempt_start_ts": 1495669602298620,
"parent_rev": "617dcc23c266b0b3c50fdb58052fdc6818e6b06b", "commit_rev":
"6872d3f67f6b70462aedcd20417c8ab31455f12c"}
Message was sent while issue was closed.
Description was changed from ========== Devices shoule not be found by Android enrollment app after successful enrollment. Changes in this cl, 1. Remove SetName() in BluetoothHostPairingController. The name of the Apapter has been set in BluetoothAdapterBlueZ::Init(). 2. Add UUID filter for device discovery when automatically enrollment. This will make sure the device can only be found during OOBE. It will not be found by the Android enrollment app after login if the user set the device as discover-able manually. BUG=720774 ========== to ========== Devices shoule not be found by Android enrollment app after successful enrollment. Changes in this cl, 1. Remove SetName() in BluetoothHostPairingController. The name of the Apapter has been set in BluetoothAdapterBlueZ::Init(). 2. Add UUID filter for device discovery when automatically enrollment. This will make sure the device can only be found during OOBE. It will not be found by the Android enrollment app after login if the user set the device as discover-able manually. BUG=720774 Review-Url: https://codereview.chromium.org/2888033002 Cr-Commit-Position: refs/heads/master@{#474487} Committed: https://chromium.googlesource.com/chromium/src/+/6872d3f67f6b70462aedcd20417c... ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/6872d3f67f6b70462aedcd20417c... |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
