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

Issue 886093003: Add support for size checking selection based scans. (Closed)

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

Description

Add support for size checking selection based scans. * Check size of scans. * Create and cache selection scans (needed to check their size)....but only cache until the next selection change. * Improve test coverage, covering both "while importing" and "insufficient size" cases. * Improve tests to check for labels too (uncovering one bug in the test). * Fix bug where we were no-longer updating import state/widget on selection changes. BUG=420680 TEST=browser_test: FileManagerJsTest.* Need a review from either mtomasz@ or hirono@, not both. First one to review, kindly remove the other. Committed: https://crrev.com/5d287529f3f821240e35ab8078fdb698d5c84ba5 Cr-Commit-Position: refs/heads/master@{#314159}

Patch Set 1 #

Patch Set 2 : Reinstate all test cases. #

Total comments: 2

Patch Set 3 : Update DefaultScanResult to use importerResolver instead of hand rolled support...was investigating… #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+330 lines, -146 lines) Patch
M ui/file_manager/file_manager/background/js/media_scanner.js View 1 2 3 chunks +23 lines, -31 lines 2 comments Download
M ui/file_manager/file_manager/foreground/js/file_manager.js View 2 chunks +15 lines, -16 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/import_controller.js View 1 2 13 chunks +165 lines, -89 lines 8 comments Download
M ui/file_manager/file_manager/foreground/js/import_controller_unittest.js View 1 8 chunks +127 lines, -10 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
Steve McKay
5 years, 10 months ago (2015-01-30 21:23:10 UTC) #2
Steve McKay
CC +hirono since I promised him this CL. Assigned mtomasz as reviewer since he said ...
5 years, 10 months ago (2015-01-30 21:24:02 UTC) #3
Steve McKay
Reinstate all test cases.
5 years, 10 months ago (2015-01-30 21:30:03 UTC) #4
Ben Kwa
https://codereview.chromium.org/886093003/diff/20001/ui/file_manager/file_manager/foreground/js/import_controller.js File ui/file_manager/file_manager/foreground/js/import_controller.js (right): https://codereview.chromium.org/886093003/diff/20001/ui/file_manager/file_manager/foreground/js/import_controller.js#newcode625 ui/file_manager/file_manager/foreground/js/import_controller.js:625: this.scanner_.scan(entries); The last selection scan result is never actually ...
5 years, 10 months ago (2015-01-30 21:45:58 UTC) #5
Steve McKay
Update DefaultScanResult to use importerResolver instead of hand rolled support...was investigating heisenbug
5 years, 10 months ago (2015-01-30 22:42:31 UTC) #6
Steve McKay
PTAL. https://codereview.chromium.org/886093003/diff/20001/ui/file_manager/file_manager/foreground/js/import_controller.js File ui/file_manager/file_manager/foreground/js/import_controller.js (right): https://codereview.chromium.org/886093003/diff/20001/ui/file_manager/file_manager/foreground/js/import_controller.js#newcode625 ui/file_manager/file_manager/foreground/js/import_controller.js:625: this.scanner_.scan(entries); On 2015/01/30 21:45:58, Ben Kwa wrote: > ...
5 years, 10 months ago (2015-01-30 22:43:00 UTC) #7
Ben Kwa
lgtm https://codereview.chromium.org/886093003/diff/40001/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/886093003/diff/40001/ui/file_manager/file_manager/background/js/media_scanner.js#newcode291 ui/file_manager/file_manager/background/js/media_scanner.js:291: /** @return {function()} */ I think this is ...
5 years, 10 months ago (2015-01-30 23:13:09 UTC) #8
Steve McKay
Thanks. https://codereview.chromium.org/886093003/diff/40001/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/886093003/diff/40001/ui/file_manager/file_manager/background/js/media_scanner.js#newcode291 ui/file_manager/file_manager/background/js/media_scanner.js:291: /** @return {function()} */ On 2015/01/30 23:13:09, Ben ...
5 years, 10 months ago (2015-01-30 23:18:02 UTC) #9
Steve McKay
Hirono-san. Added you as I'm not sure Tomasz will get to this by Monday.
5 years, 10 months ago (2015-02-01 05:17:44 UTC) #10
hirono
lgtm with commnets. Thanks! https://codereview.chromium.org/886093003/diff/40001/ui/file_manager/file_manager/foreground/js/import_controller.js File ui/file_manager/file_manager/foreground/js/import_controller.js (right): https://codereview.chromium.org/886093003/diff/40001/ui/file_manager/file_manager/foreground/js/import_controller.js#newcode132 ui/file_manager/file_manager/foreground/js/import_controller.js:132: this.scanManager_.reset(); It's better to reset ...
5 years, 10 months ago (2015-02-02 01:07:01 UTC) #12
Steve McKay
https://codereview.chromium.org/886093003/diff/40001/ui/file_manager/file_manager/foreground/js/import_controller.js File ui/file_manager/file_manager/foreground/js/import_controller.js (right): https://codereview.chromium.org/886093003/diff/40001/ui/file_manager/file_manager/foreground/js/import_controller.js#newcode132 ui/file_manager/file_manager/foreground/js/import_controller.js:132: this.scanManager_.reset(); On 2015/02/02 01:07:01, hirono wrote: > It's better ...
5 years, 10 months ago (2015-02-02 15:52:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/886093003/40001
5 years, 10 months ago (2015-02-02 15:53:10 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-02 16:59:04 UTC) #16
commit-bot: I haz the power
5 years, 10 months ago (2015-02-02 17:00:07 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5d287529f3f821240e35ab8078fdb698d5c84ba5
Cr-Commit-Position: refs/heads/master@{#314159}

Powered by Google App Engine
This is Rietveld 408576698