0
Files
src/ui
Min Qin 341386faa0 Don't use photo picker for video capture
It is strange shouldUsePhotoPicker() checks whether this is a image capture, but doesn't do the same for video capture.
This causes an issue that when selectFile() is called, it will skip all
the permission checks and go directly to call
launchSelectedFileIntent(). And launchSelectFileIntent() only invokes
camera Intent if Chrome has camera permission.

This CL will disable photopicker if the file selection is video capture.
So we will always go through permission check before calling
launchSelectFileIntent().

Bug: 374606647
Change-Id: I39d382d611a256bd22fdbcb34548ff338702617e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5963378
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Commit-Queue: Min Qin <qinmin@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1374657}
2024-10-28 16:17:06 +00:00
..
2024-10-24 18:09:15 +00:00
2024-10-25 12:59:12 +00:00
2024-10-18 17:39:17 +00:00
2024-10-18 17:39:17 +00:00
2024-10-28 15:39:34 +00:00
2024-09-30 17:58:53 +00:00

This directory contains UI frameworks used to build various user interface features. This directory is not intended to contain UI features (such as a keyboard).