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

Issue 865343002: Files.app: Invalidate ScanResult when the scanned directory is changed. (Closed)

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

Description

Files.app: Invalidate ScanResult when the scanned directory is changed. * Add whenInvalidated method to ScanResult. * Watch the invalidation in ImportController. BUG=420680 TEST=FileManagerJsTest.MediaScannerTest Committed: https://crrev.com/9ec42b887a697f656b4df721dbde5cd08104af96 Cr-Commit-Position: refs/heads/master@{#312977}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 16

Patch Set 5 : #

Total comments: 16

Patch Set 6 : Update test. #

Patch Set 7 : Fix closure compiler error. #

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -33 lines) Patch
M ui/file_manager/file_manager/background/js/background.js View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/background/js/media_scanner.js View 1 2 3 4 5 6 7 8 9 chunks +144 lines, -24 lines 0 comments Download
M ui/file_manager/file_manager/background/js/media_scanner_unittest.html View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M ui/file_manager/file_manager/background/js/media_scanner_unittest.js View 1 2 3 4 5 6 7 3 chunks +27 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/background/js/mock_media_scanner.js View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/common/js/importer_common.js View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/foreground/js/import_controller.js View 1 2 3 4 5 6 7 4 chunks +12 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
hirono
PTAL the CL, thanks!
5 years, 11 months ago (2015-01-23 01:00:54 UTC) #2
Steve McKay
I like the new direction. https://codereview.chromium.org/865343002/diff/60001/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/865343002/diff/60001/ui/file_manager/file_manager/background/js/media_scanner.js#newcode9 ui/file_manager/file_manager/background/js/media_scanner.js:9: importer.DirectoryWatcher = function(callback) { ...
5 years, 11 months ago (2015-01-23 20:02:29 UTC) #3
hirono
Thanks. I'll update tests also soon. https://codereview.chromium.org/865343002/diff/60001/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/865343002/diff/60001/ui/file_manager/file_manager/background/js/media_scanner.js#newcode9 ui/file_manager/file_manager/background/js/media_scanner.js:9: importer.DirectoryWatcher = function(callback) ...
5 years, 11 months ago (2015-01-23 21:39:35 UTC) #4
Steve McKay
https://codereview.chromium.org/865343002/diff/80001/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/865343002/diff/80001/ui/file_manager/file_manager/background/js/media_scanner.js#newcode16 ui/file_manager/file_manager/background/js/media_scanner.js:16: * @param {boolean} needWatch Whether to need to watch ...
5 years, 11 months ago (2015-01-23 22:26:10 UTC) #5
Steve McKay
I know you'll be traveling soon, so I'll prospectively LGTM this. If we need followup ...
5 years, 11 months ago (2015-01-23 22:28:05 UTC) #6
hirono
Thanks! https://codereview.chromium.org/865343002/diff/80001/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/865343002/diff/80001/ui/file_manager/file_manager/background/js/media_scanner.js#newcode16 ui/file_manager/file_manager/background/js/media_scanner.js:16: * @param {boolean} needWatch Whether to need to ...
5 years, 11 months ago (2015-01-23 23:36:46 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/865343002/160001
5 years, 11 months ago (2015-01-23 23:37:48 UTC) #9
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 11 months ago (2015-01-24 00:27:02 UTC) #10
commit-bot: I haz the power
5 years, 11 months ago (2015-01-24 00:28:29 UTC) #11
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/9ec42b887a697f656b4df721dbde5cd08104af96
Cr-Commit-Position: refs/heads/master@{#312977}

Powered by Google App Engine
This is Rietveld 408576698