serial: Initialize Bluetooth enumerator in GetPort()
The DCHECK in serial_port_manager_impl.cc:97 is reachable if the kEnableBluetoothSerialPortProfileInSerialApi flag is disabled or GetDevices() is not called first and an unrecognized token is passed to GetPort(). This change adds a check for the flag and initializes the Bluetooth enumerator as necessary. Bug: 1043300 Change-Id: Ib38e297f61cbc86bb9ab567084919a9e268196e2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2446846 Commit-Queue: Reilly Grant <reillyg@chromium.org> Commit-Queue: Matt Reynolds <mattreynolds@chromium.org> Auto-Submit: Reilly Grant <reillyg@chromium.org> Reviewed-by:Matt Reynolds <mattreynolds@chromium.org> Cr-Commit-Position: refs/heads/master@{#813457}
Showing
Please register or sign in to comment