| 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 64bbd511f4312cfd94b2f297196514b589f596d8..c950d2cd9f9a3415a70592d1701c5b25eb6d8102 100644
|
| --- a/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
|
| +++ b/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
|
| @@ -632,6 +632,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.M
|
| + ? FileUtils.getUriForFile(file)
|
| + : Uri.fromFile(file);
|
| + }
|
| +
|
| + /**
|
| * @see android.view.Window#FEATURE_INDETERMINATE_PROGRESS
|
| */
|
| public static void setWindowIndeterminateProgress(Window window) {
|
|
|