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

Issue 980603003: Move content deduplication into the scan process. (Closed)

Created:
5 years, 9 months ago by Steve McKay
Modified:
5 years, 9 months ago
Reviewers:
mtomasz, Ben Kwa
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

Move content deduplication into the scan process. Update GA events to record timing on content hashing and searching only when it exceeds a threshold. Report MEGABYTES_IMPORTED when successfully completing import. BUG=420680 // corrected bug. TEST=browser_test: FileManagerJsTest.* Committed: https://crrev.com/f57f39ca1ad4a2f03a876b776e437dc27452c8ca Cr-Commit-Position: refs/heads/master@{#319336}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Don't report error count when zero, and don't report an explicit END to import...since that is impl… #

Total comments: 42

Patch Set 3 : Respond to review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+390 lines, -315 lines) Patch
M ui/file_manager/file_manager/background/js/background.js View 2 chunks +7 lines, -7 lines 0 comments Download
M ui/file_manager/file_manager/background/js/duplicate_finder.js View 1 2 5 chunks +141 lines, -64 lines 0 comments Download
M ui/file_manager/file_manager/background/js/duplicate_finder_unittest.html View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/background/js/duplicate_finder_unittest.js View 1 2 5 chunks +68 lines, -3 lines 0 comments Download
M ui/file_manager/file_manager/background/js/media_import_handler.js View 1 2 10 chunks +39 lines, -59 lines 0 comments Download
M ui/file_manager/file_manager/background/js/media_import_handler_unittest.html View 1 chunk +1 line, -1 line 0 comments Download
M ui/file_manager/file_manager/background/js/media_import_handler_unittest.js View 2 chunks +0 lines, -62 lines 0 comments Download
M ui/file_manager/file_manager/background/js/media_scanner.js View 1 2 9 chunks +79 lines, -95 lines 0 comments Download
M ui/file_manager/file_manager/background/js/media_scanner_unittest.js View 1 2 3 chunks +33 lines, -3 lines 0 comments Download
M ui/file_manager/file_manager/background/js/mock_media_scanner.js View 2 chunks +1 line, -4 lines 0 comments Download
M ui/file_manager/file_manager/common/js/importer_common.js View 1 chunk +12 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/common/js/metrics_events.js View 1 1 chunk +7 lines, -16 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/file_manager.js View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 14 (5 generated)
Steve McKay
Self review
5 years, 9 months ago (2015-03-04 23:04:11 UTC) #1
Steve McKay
mtomasz@ for the background changes. https://codereview.chromium.org/980603003/diff/40001/ui/file_manager/file_manager/background/js/media_scanner.js File ui/file_manager/file_manager/background/js/media_scanner.js (left): https://codereview.chromium.org/980603003/diff/40001/ui/file_manager/file_manager/background/js/media_scanner.js#oldcode40 ui/file_manager/file_manager/background/js/media_scanner.js:40: importer.ScanResult = function() {}; ...
5 years, 9 months ago (2015-03-05 00:45:45 UTC) #5
mtomasz
lgtm with nits https://codereview.chromium.org/980603003/diff/60001/ui/file_manager/file_manager/background/js/duplicate_finder.js File ui/file_manager/file_manager/background/js/duplicate_finder.js (right): https://codereview.chromium.org/980603003/diff/60001/ui/file_manager/file_manager/background/js/duplicate_finder.js#newcode62 ui/file_manager/file_manager/background/js/duplicate_finder.js:62: if (elapsedTime >= 5000) { nit: ...
5 years, 9 months ago (2015-03-05 04:36:53 UTC) #6
Ben Kwa
LGTM with a few nits. https://codereview.chromium.org/980603003/diff/60001/ui/file_manager/file_manager/background/js/duplicate_finder.js File ui/file_manager/file_manager/background/js/duplicate_finder.js (right): https://codereview.chromium.org/980603003/diff/60001/ui/file_manager/file_manager/background/js/duplicate_finder.js#newcode183 ui/file_manager/file_manager/background/js/duplicate_finder.js:183: function(duplicate) { nit: param ...
5 years, 9 months ago (2015-03-05 20:05:10 UTC) #7
Steve McKay
Respond to review comments.
5 years, 9 months ago (2015-03-05 21:38:47 UTC) #8
Steve McKay
Dones. Submitting. https://codereview.chromium.org/980603003/diff/60001/ui/file_manager/file_manager/background/js/duplicate_finder.js File ui/file_manager/file_manager/background/js/duplicate_finder.js (right): https://codereview.chromium.org/980603003/diff/60001/ui/file_manager/file_manager/background/js/duplicate_finder.js#newcode62 ui/file_manager/file_manager/background/js/duplicate_finder.js:62: if (elapsedTime >= 5000) { On 2015/03/05 ...
5 years, 9 months ago (2015-03-05 21:39:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/980603003/80001
5 years, 9 months ago (2015-03-05 21:39:13 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:80001)
5 years, 9 months ago (2015-03-05 22:05:11 UTC) #13
commit-bot: I haz the power
5 years, 9 months ago (2015-03-05 22:06:10 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f57f39ca1ad4a2f03a876b776e437dc27452c8ca
Cr-Commit-Position: refs/heads/master@{#319336}

Powered by Google App Engine
This is Rietveld 408576698