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

Issue 1038433002: Update scanning to scan files in small batches (well batches of 1)...this fixes an issue where scan… (Closed)

Created:
5 years, 9 months ago by Steve McKay
Modified:
5 years, 9 months ago
Reviewers:
Ben Kwa
CC:
chromium-reviews, tfarina, rginda+watch_chromium.org, mtomasz+watch_chromium.org, hirono
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update scanning to scan files in small batches (well batches of 1)...this fixes an issue where scanning appeared to be frozen for long periods of time. This change also sets the stage for making Scans cancelable...which we'll want to do when a user changes directory...and even allow them to explicitly cancel a scan from the details panel. TEST=MediaScannerTest TBR=hirono // for mock_media_scanner.js Committed: https://crrev.com/5f0cd3385cbd2bbd7114651ed296188fe6a0603d Cr-Commit-Position: refs/heads/master@{#322099}

Patch Set 1 #

Patch Set 2 : Update test media scanner test double with new scan methods. #

Total comments: 2

Patch Set 3 : Respond to review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -145 lines) Patch
M ui/file_manager/file_manager/background/js/media_scanner.js View 1 2 8 chunks +94 lines, -60 lines 0 comments Download
M ui/file_manager/file_manager/background/js/media_scanner_unittest.js View 1 2 11 chunks +56 lines, -82 lines 0 comments Download
M ui/file_manager/file_manager/background/js/mock_media_scanner.js View 1 1 chunk +10 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/foreground/js/import_controller.js View 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Steve McKay
Update test media scanner test double with new scan methods.
5 years, 9 months ago (2015-03-24 17:43:12 UTC) #1
Steve McKay
5 years, 9 months ago (2015-03-24 17:44:25 UTC) #3
Ben Kwa
One comment on what looks to me like a bug. Otherwise, lgtm. https://codereview.chromium.org/1038433002/diff/20001/ui/file_manager/file_manager/background/js/media_scanner.js File ui/file_manager/file_manager/background/js/media_scanner.js ...
5 years, 9 months ago (2015-03-24 22:39:41 UTC) #4
Steve McKay
Respond to review comments.
5 years, 9 months ago (2015-03-24 22:52:02 UTC) #5
Steve McKay
Dones. Thanks. https://codereview.chromium.org/1038433002/diff/20001/ui/file_manager/file_manager/background/js/media_scanner.js File ui/file_manager/file_manager/background/js/media_scanner.js (right): https://codereview.chromium.org/1038433002/diff/20001/ui/file_manager/file_manager/background/js/media_scanner.js#newcode141 ui/file_manager/file_manager/background/js/media_scanner.js:141: var scanPromises = entries.forEach(this.onUniqueFileFound_.bind(this, scan)); On 2015/03/24 ...
5 years, 9 months ago (2015-03-24 22:52:23 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1038433002/40001
5 years, 9 months ago (2015-03-24 22:53:51 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-25 00:03:00 UTC) #10
commit-bot: I haz the power
5 years, 9 months ago (2015-03-25 00:03:29 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5f0cd3385cbd2bbd7114651ed296188fe6a0603d
Cr-Commit-Position: refs/heads/master@{#322099}

Powered by Google App Engine
This is Rietveld 408576698