Index: content/browser/bluetooth/bluetooth_dispatcher_host.cc |
diff --git a/content/browser/bluetooth/bluetooth_dispatcher_host.cc b/content/browser/bluetooth/bluetooth_dispatcher_host.cc |
index 6a686cc47e2fb2f7c017f03e5701f0f7526d87fb..e3fd4579d1c47b3a73bdfe91db74d9f06dbfc745 100644 |
--- a/content/browser/bluetooth/bluetooth_dispatcher_host.cc |
+++ b/content/browser/bluetooth/bluetooth_dispatcher_host.cc |
@@ -709,8 +709,12 @@ void BluetoothDispatcherHost::OnBluetoothChooserEvent( |
BluetoothChooser::Event event, |
const std::string& device_id) { |
switch (event) { |
+ case BluetoothChooser::Event::RESCAN: |
+ // TODO(jyasskin): Implement starting a new Bluetooth discovery session. |
+ NOTIMPLEMENTED(); |
+ break; |
case BluetoothChooser::Event::CANCELLED: |
- case BluetoothChooser::Event::SELECTED: |
+ case BluetoothChooser::Event::SELECTED: { |
RequestDeviceSession* session = |
request_device_sessions_.Lookup(chooser_id); |
DCHECK(session) << "Shouldn't close the dialog twice."; |
@@ -730,6 +734,16 @@ void BluetoothDispatcherHost::OnBluetoothChooserEvent( |
LOG(WARNING) << "No TaskRunner; not closing requestDevice dialog."; |
} |
break; |
+ } |
+ case BluetoothChooser::Event::SHOW_OVERVIEW_HELP: |
+ ShowBluetoothOverviewLink(); |
+ break; |
+ case BluetoothChooser::Event::SHOW_PAIRING_HELP: |
+ ShowBluetoothPairingLink(); |
+ break; |
+ case BluetoothChooser::Event::SHOW_ADAPTER_OFF_HELP: |
+ ShowBluetoothAdapterOffLink(); |
+ break; |
} |
} |
@@ -887,4 +901,16 @@ void BluetoothDispatcherHost::OnWriteValueFailed( |
TranslateGATTError(error_code, UMAGATTOperation::CHARACTERISTIC_WRITE))); |
} |
+void BluetoothDispatcherHost::ShowBluetoothOverviewLink() { |
+ NOTIMPLEMENTED(); |
+} |
+ |
+void BluetoothDispatcherHost::ShowBluetoothPairingLink() { |
+ NOTIMPLEMENTED(); |
+} |
+ |
+void BluetoothDispatcherHost::ShowBluetoothAdapterOffLink() { |
+ NOTIMPLEMENTED(); |
+} |
+ |
} // namespace content |