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

Unified Diff: chrome/browser/ui/android/bluetooth_chooser_android.cc

Issue 1711393002: bluetooth: android: register for adapter on/off events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/android/bluetooth_chooser_android.cc
diff --git a/chrome/browser/ui/android/bluetooth_chooser_android.cc b/chrome/browser/ui/android/bluetooth_chooser_android.cc
index bbc794a2ca6d5becb2daf879d506fcce3cf20253..8cf74d41f8c53dec453a8c7e34d3be969d3147d1 100644
--- a/chrome/browser/ui/android/bluetooth_chooser_android.cc
+++ b/chrome/browser/ui/android/bluetooth_chooser_android.cc
@@ -63,6 +63,9 @@ void BluetoothChooserAndroid::SetAdapterPresence(AdapterPresence presence) {
if (presence != AdapterPresence::POWERED_ON) {
Java_BluetoothChooserDialog_notifyAdapterTurnedOff(AttachCurrentThread(),
java_dialog_.obj());
+ } else {
+ Java_BluetoothChooserDialog_notifyAdapterTurnedOn(AttachCurrentThread(),
+ java_dialog_.obj());
}
}

Powered by Google App Engine
This is Rietveld 408576698