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

Unified Diff: ui/android/java/src/org/chromium/ui/UiUtils.java

Issue 2905273002: Photo Picker dialog: Request Storage permission if not already granted (e.g. through downloads). (Closed)
Patch Set: Address feedback from Ted Created 3 years, 7 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 | « no previous file | ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/java/src/org/chromium/ui/UiUtils.java
diff --git a/ui/android/java/src/org/chromium/ui/UiUtils.java b/ui/android/java/src/org/chromium/ui/UiUtils.java
index cfe14eddbe64912f80736c10477cf2ebeafcdf3c..279ff70bbab214d332b9ccbb44896f2937167936 100644
--- a/ui/android/java/src/org/chromium/ui/UiUtils.java
+++ b/ui/android/java/src/org/chromium/ui/UiUtils.java
@@ -103,6 +103,13 @@ public class UiUtils {
}
/**
+ * Returns whether a photo picker should be called.
+ */
+ public static boolean shouldShowPhotoPicker() {
+ return sPhotoPickerDelegate != null;
+ }
+
+ /**
* Called to display the photo picker.
* @param context The context to use.
* @param listener The listener that will be notified of the action the user took in the
« no previous file with comments | « no previous file | ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698