Commit e48617b1 authored by Min Qin's avatar Min Qin Committed by Chromium LUCI CQ

Fix an issue download shows page URL instead of origin

BUG=1157743

Change-Id: Ib6d78ada4e84935873b8968ba560ed9653bf6294
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2595526Reviewed-by: default avatarShakti Sahu <shaktisahu@chromium.org>
Commit-Queue: Min Qin <qinmin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#840237}
parent af217171
...@@ -105,7 +105,7 @@ public final class UiUtils { ...@@ -105,7 +105,7 @@ public final class UiUtils {
Context context = ContextUtils.getApplicationContext(); Context context = ContextUtils.getApplicationContext();
String displaySize = Formatter.formatFileSize(context, item.totalSizeBytes); String displaySize = Formatter.formatFileSize(context, item.totalSizeBytes);
String displayUrl = UrlFormatter.formatUrlForSecurityDisplay( String displayUrl = UrlFormatter.formatUrlForSecurityDisplay(
item.pageUrl, SchemeDisplay.OMIT_HTTP_AND_HTTPS); item.originalUrl, SchemeDisplay.OMIT_HTTP_AND_HTTPS);
return context.getString( return context.getString(
R.string.download_manager_prefetch_caption, displayUrl, displaySize); R.string.download_manager_prefetch_caption, displayUrl, displaySize);
} }
......
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