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

Issue 2607443002: Count and report number of duplicated files found during import. (Closed)

Created:
3 years, 12 months ago by yamaguchi
Modified:
3 years, 11 months ago
Reviewers:
fukino, Steve McKay
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

Count and report number of duplicated files found during import. Issue 2594523002 has changed the scan process for Cloud Backup. The directory scan and selection scan no longer reports before import content_duplicate files. This patch instead counts the number of such duplicated files found during the import task and adds it as ImprotEvents.CONTENT_DUPLICATE metric. BUG=668574 TEST=browser_test FileManagerJsTest.MediaImportHandlerTest CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2607443002 Cr-Commit-Position: refs/heads/master@{#444618} Committed: https://chromium.googlesource.com/chromium/src/+/d31e43ce6af3cea0654218a0d4db7188addb71d3

Patch Set 1 #

Total comments: 5

Patch Set 2 : Replace stats for CONTENT_DUPLICATE outside the loop after making sure it exists and equals to zero. #

Patch Set 3 : Rebase to head #

Patch Set 4 : Fix indent. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -0 lines) Patch
M ui/file_manager/file_manager/background/js/media_import_handler.js View 1 2 3 3 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (21 generated)
yamaguchi
PTAL
3 years, 12 months ago (2016-12-26 09:07:57 UTC) #7
fukino
https://codereview.chromium.org/2607443002/diff/1/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/2607443002/diff/1/ui/file_manager/file_manager/background/js/media_import_handler.js#newcode600 ui/file_manager/file_manager/background/js/media_import_handler.js:600: count += this.duplicateFilesCount_; Shouldn't we reset the duplicateFilesCount_ here?
3 years, 12 months ago (2016-12-26 10:34:46 UTC) #10
yamaguchi
https://codereview.chromium.org/2607443002/diff/1/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/2607443002/diff/1/ui/file_manager/file_manager/background/js/media_import_handler.js#newcode600 ui/file_manager/file_manager/background/js/media_import_handler.js:600: count += this.duplicateFilesCount_; On 2016/12/26 10:34:46, fukino wrote: > ...
3 years, 12 months ago (2016-12-26 11:35:03 UTC) #11
fukino
lgtm https://codereview.chromium.org/2607443002/diff/1/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/2607443002/diff/1/ui/file_manager/file_manager/background/js/media_import_handler.js#newcode600 ui/file_manager/file_manager/background/js/media_import_handler.js:600: count += this.duplicateFilesCount_; On 2016/12/26 11:35:03, yamaguchi wrote: ...
3 years, 12 months ago (2016-12-26 11:39:29 UTC) #12
yamaguchi
+smckay Will you review the change for the analytics?
3 years, 12 months ago (2016-12-26 11:45:39 UTC) #14
Steve McKay
Added some comments, but please feel free to submit w/ Fukino-san's LGTM. https://codereview.chromium.org/2607443002/diff/1/ui/file_manager/file_manager/background/js/media_import_handler.js File ui/file_manager/file_manager/background/js/media_import_handler.js ...
3 years, 12 months ago (2016-12-27 16:59:43 UTC) #15
yamaguchi
https://codereview.chromium.org/2607443002/diff/1/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/2607443002/diff/1/ui/file_manager/file_manager/background/js/media_import_handler.js#newcode597 ui/file_manager/file_manager/background/js/media_import_handler.js:597: if (disposition == importer.Disposition.CONTENT_DUPLICATE) { On 2016/12/27 16:59:43, Steve ...
3 years, 11 months ago (2017-01-05 09:23:59 UTC) #20
fukino
lgtm
3 years, 11 months ago (2017-01-19 02:39:14 UTC) #25
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/2607443002/60001
3 years, 11 months ago (2017-01-19 02:41:49 UTC) #28
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 03:09:05 UTC) #31
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/d31e43ce6af3cea0654218a0d4db...

Powered by Google App Engine
This is Rietveld 408576698