Commit ea199bcd authored by Sinan Sahin's avatar Sinan Sahin Committed by Commit Bot

[Context menu] Remove scheme and trivial subdomain from URL

Bug: 992019
Change-Id: Iab178d111664799f815843f84b9df94de83bb281
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2429464Reviewed-by: default avatarTheresa  <twellington@chromium.org>
Commit-Queue: Sinan Sahin <sinansahin@google.com>
Cr-Commit-Position: refs/heads/master@{#810301}
parent 6ed7a15d
...@@ -389,7 +389,8 @@ public class ChromeContextMenuPopulator implements ContextMenuPopulator { ...@@ -389,7 +389,8 @@ public class ChromeContextMenuPopulator implements ContextMenuPopulator {
// being loaded. Only use native URL formatting methods // being loaded. Only use native URL formatting methods
// if the native libraries have been loaded. // if the native libraries have been loaded.
if (BrowserStartupController.getInstance().isFullBrowserStarted()) { if (BrowserStartupController.getInstance().isFullBrowserStarted()) {
return UrlFormatter.formatUrlForDisplayOmitHTTPScheme(params.getLinkUrl()); return UrlFormatter.formatUrlForDisplayOmitSchemeOmitTrivialSubdomains(
params.getLinkUrl());
} }
return params.getLinkUrl(); return params.getLinkUrl();
} }
......
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