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

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

Issue 2426573005: bluetooth-chooser: Refactor and clean up bluetooth chooser (Closed)
Patch Set: Address tedchoc's comments Created 4 years, 2 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
« no previous file with comments | « chrome/android/javatests/src/org/chromium/chrome/browser/ItemChooserDialogTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/android/usb_chooser_dialog_android.cc
diff --git a/chrome/browser/ui/android/usb_chooser_dialog_android.cc b/chrome/browser/ui/android/usb_chooser_dialog_android.cc
index e6e15359498743a44fd29e38f6f84cf7571a1424..19bba9c4afd9ba76d78f24fa782fd3474573044f 100644
--- a/chrome/browser/ui/android/usb_chooser_dialog_android.cc
+++ b/chrome/browser/ui/android/usb_chooser_dialog_android.cc
@@ -211,10 +211,7 @@ void UsbChooserDialogAndroid::RemoveDeviceFromChooserDialog(
JNIEnv* env = base::android::AttachCurrentThread();
base::android::ScopedJavaLocalRef<jstring> device_guid =
base::android::ConvertUTF8ToJavaString(env, device->guid());
- base::android::ScopedJavaLocalRef<jstring> device_name =
- base::android::ConvertUTF16ToJavaString(env, device->product_string());
- Java_UsbChooserDialog_removeDevice(env, java_dialog_, device_guid,
- device_name);
+ Java_UsbChooserDialog_removeDevice(env, java_dialog_, device_guid);
}
void UsbChooserDialogAndroid::OpenUrl(const std::string& url) {
« no previous file with comments | « chrome/android/javatests/src/org/chromium/chrome/browser/ItemChooserDialogTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698