Index: chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java b/chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java |
index 6bcb74bd52a947fd76e0c1cb554ad8bcae9b6f7f..d3b9da5c98b0f3ea9cc68c6d79f44787d78d4c5a 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/UrlUtilities.java |
@@ -110,6 +110,13 @@ public class UrlUtilities { |
} |
/** |
+ * Refer to UrlFixerUpper::FixupURL. |
+ */ |
+ public static String fixupUrl(String uri) { |
+ return nativeFixupUrl(uri, null); |
+ } |
+ |
+ /** |
* Builds a String that strips down the URL to the its scheme, host, and port. |
* @param uri URI to break down. |
* @param showScheme Whether or not to show the scheme. If the URL can't be parsed, this value |
@@ -190,4 +197,5 @@ public class UrlUtilities { |
boolean includePrivateRegistries); |
public static native boolean nativeIsGoogleSearchUrl(String url); |
public static native boolean nativeIsGoogleHomePageUrl(String url); |
+ public static native String nativeFixupUrl(String url, String desiredTld); |
} |