| Index: base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
|
| diff --git a/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java b/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
|
| index 406f328c18058b11c6c8d72d85d429df38a368ad..c286c2ce6e43f50725b5b97b9ac42d75cc0be77b 100644
|
| --- a/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
|
| +++ b/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
|
| @@ -621,6 +621,18 @@ public class ApiCompatibilityUtils {
|
| }
|
|
|
| /**
|
| + * Get the URI for a downloaded file.
|
| + *
|
| + * @param file A downloaded file.
|
| + * @return URI for |file|.
|
| + */
|
| + public static Uri getUriForDownloadedFile(File file) {
|
| + return Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2
|
| + ? FileUtils.getUriForFile(file)
|
| + : Uri.fromFile(file);
|
| + }
|
| +
|
| + /**
|
| * @see android.view.Window#FEATURE_INDETERMINATE_PROGRESS
|
| */
|
| public static void setWindowIndeterminateProgress(Window window) {
|
|
|