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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java

Issue 1357563002: Expose FormatUrlForSecurityDisplay to Java on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Using a fake scheme in the test makes formatUrlForSecurityDisplay be conservative, breaking the tes… Created 5 years, 3 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/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java b/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java
index eb5ce0a5ee21cb4a868219063ee6f19bc910b9fe..e72e863f3e0df115d9504b310a020fe768cb8748 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java
@@ -68,7 +68,7 @@ public class MediaSessionTabHelper {
}
String origin = mTab.getUrl();
try {
- origin = UrlUtilities.getOriginForDisplay(new URI(origin), true);
+ origin = UrlUtilities.formatUrlForSecurityDisplay(new URI(origin), true);
} catch (URISyntaxException e) {
Log.e(TAG, "Unable to parse the origin from the URL. "
+ "Showing the full URL instead.");

Powered by Google App Engine
This is Rietveld 408576698