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

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: Rebased on master 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 1b5567df7cd8ad033ada313ef72168f1c2a07bb6..d08203fb63008ebe0459f514d568bed7cee544ae 100644
--- a/chrome/browser/ui/android/bluetooth_chooser_android.cc
+++ b/chrome/browser/ui/android/bluetooth_chooser_android.cc
@@ -65,6 +65,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