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 810e186de6cd92fb36e357c9286517342495169c..c1a2395c4f2bb918ab826e0a4242535217dbd999 100644 |
--- a/content/browser/bluetooth/bluetooth_dispatcher_host.cc |
+++ b/content/browser/bluetooth/bluetooth_dispatcher_host.cc |
@@ -722,8 +722,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."; |
@@ -743,6 +747,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; |
} |
} |
@@ -900,4 +914,16 @@ void BluetoothDispatcherHost::OnWriteValueFailed( |
TranslateGATTError(error_code, UMAGATTOperation::CHARACTERISTIC_WRITE))); |
} |
+void BluetoothDispatcherHost::ShowBluetoothOverviewLink() { |
+ NOTIMPLEMENTED(); |
+} |
+ |
+void BluetoothDispatcherHost::ShowBluetoothPairingLink() { |
+ NOTIMPLEMENTED(); |
+} |
+ |
+void BluetoothDispatcherHost::ShowBluetoothAdapterOffLink() { |
+ NOTIMPLEMENTED(); |
+} |
+ |
} // namespace content |