Don't block FILE thread for media scanning
Only perform media scanning if a scan has not been performed since the file update event. Building up the timestamp map is also moved off the FILE thread and on to the blocking pool. BUG=628223 TEST=create a large (~10k) set of files under /home/chronos/user/Downloads Enable ARC++ create a profiler snapshot at chrome://profiler create one more new file under Downloads Create another snapshot in chrome://profiler Verify that there are no long-running tasks on the FILE thread, and that DelayBuildTimestampMap is only called once. Review-Url: https://codereview.chromium.org/2310833002 Cr-Commit-Position: refs/heads/master@{#418778}
Showing
Please register or sign in to comment