Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/util/UrlUtilities.java

Issue 2626333002: (Android) make ContextMenu for links / images more clear and organized (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuTitleView.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/util/UrlUtilities.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/util/UrlUtilities.java b/chrome/android/java/src/org/chromium/chrome/browser/util/UrlUtilities.java
index 7fee8620291a54c8b52db0d0f4457d34c5bdc022..875eb8ddad616333364078f396da5ba5806b5bea 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/util/UrlUtilities.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/util/UrlUtilities.java
@@ -4,6 +4,7 @@
package org.chromium.chrome.browser.util;
+import android.net.Uri;
import android.text.TextUtils;
import org.chromium.base.CollectionUtil;
@@ -291,6 +292,15 @@ public class UrlUtilities {
return true;
}
+ /**
+ * @param url A URL.
+ *
+ * @return URL with decoded '%'-escaped octets.
+ */
+ public static String decodeUrl(String url) {
+ return Uri.decode(Uri.decode(url));
+ }
+
private static native boolean nativeIsDownloadable(String url);
private static native boolean nativeIsValidForIntentFallbackNavigation(String url);
private static native boolean nativeIsAcceptedScheme(String url);
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuTitleView.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698