Commit 451ea772 authored by Jan Wilken Dörrie's avatar Jan Wilken Dörrie Committed by Commit Bot

[Url Formatter] Remove deprecated formatUrlForSecurityDisplayOmitScheme

After https://crrev.com/i/2475792 removed the last remaining usages of
formatUrlForSecurityDisplayOmitScheme from the internal code base this
change now removes this deprecated API completely.

Bug: 596488
Change-Id: I5c2ba2552ab0dfae0b87527999b2b8fcb858c5aa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2026572
Auto-Submit: Jan Wilken Dörrie <jdoerrie@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#736518}
parent ca48a8b6
......@@ -122,20 +122,6 @@ public final class UrlFormatter {
return UrlFormatterJni.get().formatUrlForSecurityDisplay(uri, schemeDisplay);
}
/**
* @deprecated Use {@link #formatUrlForSecurityDisplay(String, int)} instead.
* TODO(crbug.com/596488): Remove this once internal usages are migrated.
* Builds a String that strips down |uri| to its host, and port.
* @param uri The URI to break down.
* @return Stripped-down String containing the essential bits of the URL, or the original URL if
* it fails to parse it.
*/
@Deprecated
public static String formatUrlForSecurityDisplayOmitScheme(String uri) {
return UrlFormatterJni.get().formatUrlForSecurityDisplay(
uri, SchemeDisplay.OMIT_HTTP_AND_HTTPS);
}
@VisibleForTesting
@NativeMethods
public interface Natives {
......
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