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

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

Issue 1842223003: Remove outdated devices from Android device chooser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit test for ItemChooserDialog Created 4 years, 8 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 6f4ce8b1c7775d31f9956e1c46a119f3e47eefda..2793c36f129637d23f0966fb8b397e809dd22ca8 100644
--- a/chrome/browser/ui/android/bluetooth_chooser_android.cc
+++ b/chrome/browser/ui/android/bluetooth_chooser_android.cc
@@ -110,14 +110,6 @@ void BluetoothChooserAndroid::AddDevice(const std::string& device_id,
env, java_dialog_.obj(), java_device_id.obj(), java_device_name.obj());
}
-void BluetoothChooserAndroid::RemoveDevice(const std::string& device_id) {
- JNIEnv* env = AttachCurrentThread();
- ScopedJavaLocalRef<jstring> java_device_id =
- ConvertUTF16ToJavaString(env, base::UTF8ToUTF16(device_id));
- Java_BluetoothChooserDialog_removeDevice(env, java_dialog_.obj(),
- java_device_id.obj());
-}
-
void BluetoothChooserAndroid::OnDialogFinished(
JNIEnv* env,
const JavaParamRef<jobject>& obj,

Powered by Google App Engine
This is Rietveld 408576698