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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappUrlBar.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/webapps/WebappUrlBar.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappUrlBar.java b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappUrlBar.java
index 48874c211845cb24c62bcd1d79972e0670b3682a..3c080a687fde4cdd4d5284088074eb63f11744ea 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappUrlBar.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappUrlBar.java
@@ -162,7 +162,7 @@ public class WebappUrlBar extends FrameLayout implements View.OnLayoutChangeList
boolean showScheme = mCurrentIconResource == 0;
String displayUrl = originalUrl;
if (uri != null) {
- String shortenedUrl = UrlUtilities.getOriginForDisplay(uri, showScheme);
+ String shortenedUrl = UrlUtilities.formatUrlForSecurityDisplay(uri, showScheme);
if (!TextUtils.isEmpty(shortenedUrl)) displayUrl = shortenedUrl;
}

Powered by Google App Engine
This is Rietveld 408576698