Commit f593e7b0 authored by Carlos IL's avatar Carlos IL Committed by Commit Bot

Do not show username in android page info

PageInfo in Android currently shows the full url used to navigate,
including username@ if the navigation included it. This CL changes it
so it omits it. This does not affect the copy function which will
still copy the URL including the username@ part. This matches the
omnibox functionality on desktop.

Bug: 1050011
Change-Id: I3b6794f94774a7300f5afe43262b130c0d534949
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2055806Reviewed-by: default avatarYusuf Ozuysal <yusufo@chromium.org>
Commit-Queue: Carlos IL <carlosil@chromium.org>
Cr-Commit-Position: refs/heads/master@{#741463}
parent 5fbb8fdd
......@@ -206,7 +206,7 @@ public class PageInfoController implements ModalDialogProperties.Controller,
// Ignore exception since this is for displaying some specific content on page info.
}
String displayUrl = UrlFormatter.formatUrlForCopy(mFullUrl);
String displayUrl = UrlFormatter.formatUrlForSecurityDisplay(mFullUrl);
if (isShowingOfflinePage()) {
displayUrl = UrlUtilities.stripScheme(mFullUrl);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment