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

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

Issue 1996603003: Display origin for WebBluetooth and WebUSB chooser on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: display origin for WebBluetooth and WebUSB chooser on Android Created 4 years, 7 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/browser/ui/android/bluetooth_chooser_android.cc ('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 c2452973302ca924e416563a0fe728181612b36b..18bc834330d461320abd33169834c7dd2a01d7c4 100644
--- a/chrome/browser/ui/android/usb_chooser_dialog_android.cc
+++ b/chrome/browser/ui/android/usb_chooser_dialog_android.cc
@@ -60,8 +60,8 @@ UsbChooserDialogAndroid::UsbChooserDialogAndroid(
JNIEnv* env = base::android::AttachCurrentThread();
base::android::ScopedJavaLocalRef<jstring> origin_string =
base::android::ConvertUTF16ToJavaString(
- env, url_formatter::FormatUrlForSecurityDisplay(
- render_frame_host->GetLastCommittedURL()));
+ env, url_formatter::FormatUrlForSecurityDisplay(GURL(
+ render_frame_host->GetLastCommittedOrigin().Serialize())));
ChromeSecurityStateModelClient* security_model_client =
ChromeSecurityStateModelClient::FromWebContents(web_contents);
DCHECK(security_model_client);
« no previous file with comments | « chrome/browser/ui/android/bluetooth_chooser_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698