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

Issue 837563002: Show a little circly/arrowey badge for files that have been copied locally. (Closed)

Created:
5 years, 11 months ago by Steve McKay
Modified:
5 years, 11 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

Show a little circly/arrowey badge for files that have been copied locally. Update import history code to support tracking locally copied files (and their destinations). Tracking destination is necessary as we'll eventually need to do lookups against destinations in order to mark items as imported when they are fully synced to the cloud. BUG=420680 TEST=browser_test: FileManagerJsTest.* Committed: https://crrev.com/45e673e6ff837eeb500c2ad5bcbe5a799e8ba180 Cr-Commit-Position: refs/heads/master@{#310189}

Patch Set 1 #

Patch Set 2 : Add support for tracking local copy operations separately from cloud import. #

Total comments: 13

Patch Set 3 : Update record storage to use an explicit RecordType. #

Total comments: 10

Patch Set 4 : Update FileGrid to use new copy logic. #

Patch Set 5 : Varous fixups. Respond to review comments. Update tests to use reportPromise. #

Patch Set 6 : Add copy support to test import_history and update media import handler test to check for copy resu… #

Patch Set 7 : Add copy support to test import_history and update media import handler test to check for copy resu… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+403 lines, -135 lines) Patch
M ui/file_manager/file_manager/background/js/import_history.js View 1 2 3 4 18 chunks +209 lines, -69 lines 0 comments Download
M ui/file_manager/file_manager/background/js/import_history_unittest.html View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/file_manager/file_manager/background/js/import_history_unittest.js View 1 2 3 4 8 chunks +111 lines, -62 lines 0 comments Download
M ui/file_manager/file_manager/background/js/media_import_handler.js View 1 1 chunk +5 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/background/js/media_import_handler_unittest.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ui/file_manager/file_manager/background/js/test_import_history.js View 1 2 3 4 5 2 chunks +45 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/common/js/importer_common.js View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/css/file_manager.css View 2 chunks +16 lines, -1 line 0 comments Download
A + ui/file_manager/file_manager/foreground/images/files/ui/2x/copied_badge.png View Binary file 0 comments Download
A + ui/file_manager/file_manager/foreground/images/files/ui/copied_badge.png View Binary file 0 comments Download
M ui/file_manager/file_manager/foreground/js/ui/file_grid.js View 1 2 3 4 1 chunk +13 lines, -1 line 0 comments Download

Messages

Total messages: 18 (3 generated)
Steve McKay
Add support for tracking local copy operations separately from cloud import.
5 years, 11 months ago (2015-01-06 01:09:07 UTC) #1
Steve McKay
5 years, 11 months ago (2015-01-06 01:11:13 UTC) #3
mtomasz
https://codereview.chromium.org/837563002/diff/20001/ui/file_manager/file_manager/background/js/import_history.js File ui/file_manager/file_manager/background/js/import_history.js (right): https://codereview.chromium.org/837563002/diff/20001/ui/file_manager/file_manager/background/js/import_history.js#newcode29 ui/file_manager/file_manager/background/js/import_history.js:29: importer.ImportHistory.prototype.wasImported; import.Destination is a destination for importing. Then, if ...
5 years, 11 months ago (2015-01-06 03:51:01 UTC) #4
mtomasz
Per offline discussion. After adding record type instead of overriding import.Destination lgtm with nits as ...
5 years, 11 months ago (2015-01-06 04:18:12 UTC) #5
Steve McKay
Update record storage to use an explicit RecordType.
5 years, 11 months ago (2015-01-06 20:15:28 UTC) #6
Steve McKay
Update FileGrid to use new copy logic.
5 years, 11 months ago (2015-01-06 20:28:49 UTC) #7
Ben Kwa
lgtm Discussed offline, remaining issues are noted, otherwise, LG. https://codereview.chromium.org/837563002/diff/40001/ui/file_manager/file_manager/background/js/import_history.js File ui/file_manager/file_manager/background/js/import_history.js (right): https://codereview.chromium.org/837563002/diff/40001/ui/file_manager/file_manager/background/js/import_history.js#newcode212 ui/file_manager/file_manager/background/js/import_history.js:212: ...
5 years, 11 months ago (2015-01-06 21:57:50 UTC) #8
Steve McKay
Varous fixups. Respond to review comments. Update tests to use reportPromise.
5 years, 11 months ago (2015-01-06 22:27:27 UTC) #9
Steve McKay
Dones. Thanks! https://codereview.chromium.org/837563002/diff/40001/ui/file_manager/file_manager/background/js/import_history.js File ui/file_manager/file_manager/background/js/import_history.js (right): https://codereview.chromium.org/837563002/diff/40001/ui/file_manager/file_manager/background/js/import_history.js#newcode212 ui/file_manager/file_manager/background/js/import_history.js:212: for (var path in entries[key][destination]) { On ...
5 years, 11 months ago (2015-01-06 22:27:59 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/837563002/80001
5 years, 11 months ago (2015-01-06 22:29:12 UTC) #12
Steve McKay
Add copy support to test import_history and update media import handler test to check for ...
5 years, 11 months ago (2015-01-06 23:26:16 UTC) #13
Steve McKay
Add copy support to test import_history and update media import handler test to check for ...
5 years, 11 months ago (2015-01-06 23:27:37 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/837563002/120001
5 years, 11 months ago (2015-01-07 00:16:39 UTC) #16
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 11 months ago (2015-01-07 00:30:06 UTC) #17
commit-bot: I haz the power
5 years, 11 months ago (2015-01-07 00:32:04 UTC) #18
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/45e673e6ff837eeb500c2ad5bcbe5a799e8ba180
Cr-Commit-Position: refs/heads/master@{#310189}

Powered by Google App Engine
This is Rietveld 408576698