| 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 1eac6a4a9993d915a83766f2222741e6f4fe2270..bd817b1ec0fdb37338b36fb0523c1e7aaeeff94d 100644
|
| --- a/chrome/browser/ui/android/bluetooth_chooser_android.cc
|
| +++ b/chrome/browser/ui/android/bluetooth_chooser_android.cc
|
| @@ -43,8 +43,8 @@ BluetoothChooserAndroid::BluetoothChooserAndroid(
|
| JNIEnv* env = AttachCurrentThread();
|
| base::android::ScopedJavaLocalRef<jstring> origin_string =
|
| base::android::ConvertUTF16ToJavaString(
|
| - env, url_formatter::FormatUrlForSecurityDisplay(
|
| - frame->GetLastCommittedURL()));
|
| + env,
|
| + url_formatter::FormatUrlForSecurityDisplay(GURL(origin.Serialize())));
|
| java_dialog_.Reset(Java_BluetoothChooserDialog_create(
|
| env, window_android.obj(), origin_string.obj(),
|
| security_model_client->GetSecurityInfo().security_level,
|
|
|