DescriptionMediaScanner improvements.
Background: In a subsequent CL we'll want to plug the scanner into the progress center (as a "task" I believe) so the user can see that there is some activity going on. This is one reason why we don't just gather up all the files in a single swoop, but do some acrobatics to handle each file individually.
* Update MediaScanner to be non-reusable (1 instance per scan).
* Add separate MediaScanner and ScanResult interfaces.
* MediaScanner now tracks scan duration (which will be reported in a subsequent UMA).
* MediaScanner now gathers local storage requirements so that cloud import can report insufficient storage to user...and prohibit import.
BUG=420680
TEST=browser_test: FileManagerJsTest.*
Committed: https://crrev.com/41ec9ff4ad115e94ed3e9b2d96c42e5f6eb07f2c
Cr-Commit-Position: refs/heads/master@{#308045}
Patch Set 1 #
Total comments: 59
Patch Set 2 : Refactor media scanner to separate scanning code from results code, eliminating the need for a fact… #
Total comments: 12
Patch Set 3 : Respond to review comments. #
Total comments: 1
Patch Set 4 : Respond to review comments. #Patch Set 5 : Respond to review comments. #Patch Set 6 : pull 'n merge. #Messages
Total messages: 23 (2 generated)
|