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

Issue 2594523002: Postpone the content duplication check until starting import. (Closed)

Created:
4 years ago by yamaguchi
Modified:
4 years ago
Reviewers:
fukino
CC:
chromium-reviews, tfarina, yamaguchi+watch_chromium.org, oka+watch_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, fukino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Postpone the content duplication check until starting import. Skip content duplication check at the directory or selection scan, which runs automatically upon directory or selection change. The de-duplication by content hash check is added to the import task instead. When it finds a file already exist in Drive, it skips the transfer of such file but just marks as imported. BUG=668574 TEST=browser_test: FileManagerJsTest.* , and manual test : Put 2 new image files (A and B) in /DCIM folder of a removable drive. Copy a file (A) to a folder in Drive manually. See the both file detected as "new file" by cloud backup. Execute Cloud Backup for both files and confirm only (B) is copied to Cloud Backup folder, and see the both file gets Drive icon in the Status column. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/b02ae16b895b09fe5dd3319b37a32876abe58eaf Cr-Commit-Position: refs/heads/master@{#440052}

Patch Set 1 #

Patch Set 2 : Use typedef name to avoid repeating the full signature of the disposition check function. #

Patch Set 3 : Add JS unit test testcase for MediaImportHandler. #

Total comments: 7

Patch Set 4 : Fix indent. Remove unnecessary code. #

Patch Set 5 : indent fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -28 lines) Patch
M ui/file_manager/file_manager/background/js/background.js View 1 2 3 2 chunks +8 lines, -3 lines 0 comments Download
M ui/file_manager/file_manager/background/js/duplicate_finder.js View 1 2 chunks +11 lines, -7 lines 0 comments Download
M ui/file_manager/file_manager/background/js/media_import_handler.js View 1 2 3 8 chunks +29 lines, -2 lines 0 comments Download
M ui/file_manager/file_manager/background/js/media_import_handler_unittest.js View 1 2 3 4 8 chunks +96 lines, -12 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/import_controller.js View 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 40 (30 generated)
yamaguchi
I'll fix the unittest first.
4 years ago (2016-12-20 09:16:19 UTC) #15
yamaguchi
ptal.
4 years ago (2016-12-20 14:16:48 UTC) #22
fukino
Please add the title in the first line of bug description. (The title in Rietveld ...
4 years ago (2016-12-21 05:57:00 UTC) #23
yamaguchi
https://codereview.chromium.org/2594523002/diff/40001/ui/file_manager/file_manager/background/js/media_import_handler.js File ui/file_manager/file_manager/background/js/media_import_handler.js (right): https://codereview.chromium.org/2594523002/diff/40001/ui/file_manager/file_manager/background/js/media_import_handler.js#newcode405 ui/file_manager/file_manager/background/js/media_import_handler.js:405: this.markAsImported_(entry); On 2016/12/21 05:56:59, fukino wrote: > You don't ...
4 years ago (2016-12-21 07:36:57 UTC) #29
fukino
https://codereview.chromium.org/2594523002/diff/40001/ui/file_manager/file_manager/background/js/media_import_handler_unittest.js File ui/file_manager/file_manager/background/js/media_import_handler_unittest.js (right): https://codereview.chromium.org/2594523002/diff/40001/ui/file_manager/file_manager/background/js/media_import_handler_unittest.js#newcode199 ui/file_manager/file_manager/background/js/media_import_handler_unittest.js:199: whenImportDone.then( On 2016/12/21 07:36:57, yamaguchi wrote: > On 2016/12/21 ...
4 years ago (2016-12-21 07:46:16 UTC) #30
fukino
lgtm assuming you correct the indent depth.
4 years ago (2016-12-21 07:46:43 UTC) #31
yamaguchi
On 2016/12/21 07:46:16, fukino wrote: > https://codereview.chromium.org/2594523002/diff/40001/ui/file_manager/file_manager/background/js/media_import_handler_unittest.js > File ui/file_manager/file_manager/background/js/media_import_handler_unittest.js > (right): > > https://codereview.chromium.org/2594523002/diff/40001/ui/file_manager/file_manager/background/js/media_import_handler_unittest.js#newcode199 ...
4 years ago (2016-12-21 07:54:58 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2594523002/80001
4 years ago (2016-12-21 07:55:21 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-21 08:23:14 UTC) #38
commit-bot: I haz the power
4 years ago (2016-12-21 08:24:46 UTC) #40
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b02ae16b895b09fe5dd3319b37a32876abe58eaf
Cr-Commit-Position: refs/heads/master@{#440052}

Powered by Google App Engine
This is Rietveld 408576698