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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java

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/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java b/chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java
index a0e07a2451c5771c1cb59a3229b862b7a9fe7eff..278005106028ea09114826105fe8fe00390a5840 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java
@@ -321,6 +321,14 @@ public class BluetoothChooserDialog
}
@CalledByNative
+ private void notifyAdapterTurnedOn() {
+ mItemChooserDialog.clear();
Ted C 2016/02/26 17:50:35 unless this line can somehow call closeDialog(), t
scheib 2016/02/26 20:23:47 Done.
+ if (mNativeBluetoothChooserDialogPtr != 0) {
+ nativeRestartSearch(mNativeBluetoothChooserDialogPtr);
Ted C 2016/02/26 17:50:35 Why not have the native side just call this method
scheib 2016/02/26 20:23:47 Done.
+ }
+ }
+
+ @CalledByNative
private void notifyDiscoveryState(int discoveryState) {
switch (discoveryState) {
case DISCOVERY_FAILED_TO_START: {

Powered by Google App Engine
This is Rietveld 408576698