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

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

Issue 2385533002: Replace usage of GURL(origin.Serialize()) with origin.GetURL() (Closed)
Patch Set: ncarter 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
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 8003eadbb5f7033f2d03d94b98761991961faa69..d872f2617f2bc3e2105f060a4476968da94921f9 100644
--- a/chrome/browser/ui/android/bluetooth_chooser_android.cc
+++ b/chrome/browser/ui/android/bluetooth_chooser_android.cc
@@ -44,8 +44,7 @@ BluetoothChooserAndroid::BluetoothChooserAndroid(
JNIEnv* env = AttachCurrentThread();
base::android::ScopedJavaLocalRef<jstring> origin_string =
base::android::ConvertUTF16ToJavaString(
- env,
- url_formatter::FormatUrlForSecurityDisplay(GURL(origin.Serialize())));
+ env, url_formatter::FormatUrlForSecurityDisplay(origin.GetURL()));
security_state::SecurityStateModel::SecurityInfo security_info;
security_model_client->GetSecurityInfo(&security_info);
java_dialog_.Reset(Java_BluetoothChooserDialog_create(

Powered by Google App Engine
This is Rietveld 408576698