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

Unified Diff: chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.cc

Issue 2203103003: Reset Bluetooth EventHandler when it is invalid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reset Bluetooth EventHandler when it is not valid Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.cc
diff --git a/chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.cc b/chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.cc
index f24e4a9585052940e792715b24895e1c1dd04303..e080a3ef5ef6b66564d141cf40d598be209e4567 100644
--- a/chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.cc
+++ b/chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.cc
@@ -13,7 +13,9 @@ BluetoothChooserDesktop::BluetoothChooserDesktop(
DCHECK(bluetooth_chooser_controller_);
}
-BluetoothChooserDesktop::~BluetoothChooserDesktop() {}
+BluetoothChooserDesktop::~BluetoothChooserDesktop() {
+ bluetooth_chooser_controller_->ResetEventHandler();
Jeffrey Yasskin 2016/08/05 20:37:51 Comment here that this satisfies the WebContentsDe
juncai 2016/08/05 22:51:58 Done.
+}
void BluetoothChooserDesktop::SetAdapterPresence(AdapterPresence presence) {
bluetooth_chooser_controller_->OnAdapterPresenceChanged(presence);

Powered by Google App Engine
This is Rietveld 408576698