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

Issue 2930443002: Show confirmation dialog when copy/move operation affect other members. (Closed)

Created:
3 years, 6 months ago by yamaguchi
Modified:
3 years, 6 months ago
Reviewers:
fukino
CC:
chromium-reviews, extensions-reviews_chromium.org, yamaguchi+watch_chromium.org, oka+watch_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, oshima+watch_chromium.org, fukino+watch_chromium.org, chromium-apps-reviews_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Show confirmation dialog when copy/move operation affect other members. User can change expose new files to another member or remove files that was visible for other members in the Files app by these operations: - Move files from a Team Drive to My Drive - Move/Copy files from My Drive to a Team Drive - Move/Copy files from a Team Drive to another Team Drive - Move files from a Team Drive to Downloads - Move/Copy files from Downloads to a Team Drive We'll show a confirmation dialog box before executing such operation, so that user can either choose to continue or cancel the operation after knowing what will happen. BUG=722324 TEST=manually tested by moving/copying files between different Team Drive/My Drive/Downloads CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2930443002 Cr-Commit-Position: refs/heads/master@{#478610} Committed: https://chromium.googlesource.com/chromium/src/+/63f99bb69d83795394a801343c3827de017ecbbb

Patch Set 1 #

Patch Set 2 : Handle UI in the FileManagerUI class. #

Patch Set 3 : Fix messages #

Patch Set 4 : Update descriptions of string resources. #

Patch Set 5 : Revert wrongly deleted line #

Patch Set 6 : Fix type annotation errors. #

Patch Set 7 : rebase #

Total comments: 2

Patch Set 8 : Fix comment #

Patch Set 9 : Remove some comment #

Total comments: 11

Patch Set 10 : Split message generator and confirmation type classifier #

Patch Set 11 : output log for errornous input #

Patch Set 12 : Do not start paste if source file set is empty. #

Total comments: 1

Patch Set 13 : Stop showing error when source file set is empty, because it can happen with certain user operation. #

Total comments: 10

Patch Set 14 : Address comments. #

Total comments: 3

Patch Set 15 : Update message resource names. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -18 lines) Patch
M chrome/app/chromeos_strings.grdp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/private_api_strings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +14 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/common/js/util.js View 1 chunk +15 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/compiled_resources2.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/file_manager.js View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/file_transfer_controller.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 10 chunks +164 lines, -18 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +42 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (33 generated)
yamaguchi
https://codereview.chromium.org/2930443002/diff/110001/ui/file_manager/file_manager/foreground/js/compiled_resources2.gyp File ui/file_manager/file_manager/foreground/js/compiled_resources2.gyp (right): https://codereview.chromium.org/2930443002/diff/110001/ui/file_manager/file_manager/foreground/js/compiled_resources2.gyp#newcode265 ui/file_manager/file_manager/foreground/js/compiled_resources2.gyp:265: 'ui/compiled_resources2.gyp:file_manager_ui', I wondered either UI or file_transfer_controller should own ...
3 years, 6 months ago (2017-06-08 14:11:39 UTC) #13
fukino
Could you explain what changed and why in the bug description? https://codereview.chromium.org/2930443002/diff/150001/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js File ui/file_manager/file_manager/foreground/js/file_transfer_controller.js (right): ...
3 years, 6 months ago (2017-06-09 07:05:46 UTC) #15
yamaguchi
https://codereview.chromium.org/2930443002/diff/150001/chrome/browser/chromeos/extensions/file_manager/private_api_strings.cc File chrome/browser/chromeos/extensions/file_manager/private_api_strings.cc (right): https://codereview.chromium.org/2930443002/diff/150001/chrome/browser/chromeos/extensions/file_manager/private_api_strings.cc#newcode115 chrome/browser/chromeos/extensions/file_manager/private_api_strings.cc:115: SET_STRING("DRIVE_CONFIRM_MOVE_FROM_TEAM_DRIVE_TITLE", FYI: This was a duplicate. https://codereview.chromium.org/2930443002/diff/150001/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js File ui/file_manager/file_manager/foreground/js/file_transfer_controller.js ...
3 years, 6 months ago (2017-06-09 09:49:15 UTC) #20
yamaguchi
ptal https://codereview.chromium.org/2930443002/diff/210001/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js File ui/file_manager/file_manager/foreground/js/file_transfer_controller.js (right): https://codereview.chromium.org/2930443002/diff/210001/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js#newcode692 ui/file_manager/file_manager/foreground/js/file_transfer_controller.js:692: console.error('Source entry set was emtpy while attempting to ...
3 years, 6 months ago (2017-06-09 10:25:20 UTC) #27
fukino
https://codereview.chromium.org/2930443002/diff/230001/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js File ui/file_manager/file_manager/foreground/js/file_transfer_controller.js (right): https://codereview.chromium.org/2930443002/diff/230001/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js#newcode274 ui/file_manager/file_manager/foreground/js/file_transfer_controller.js:274: MOVE_FROM_TEAM_DRIVE: 'move_from_team_drive', These enums don't look either disjoint nor ...
3 years, 6 months ago (2017-06-12 08:03:29 UTC) #31
yamaguchi
https://codereview.chromium.org/2930443002/diff/230001/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js File ui/file_manager/file_manager/foreground/js/file_transfer_controller.js (right): https://codereview.chromium.org/2930443002/diff/230001/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js#newcode274 ui/file_manager/file_manager/foreground/js/file_transfer_controller.js:274: MOVE_FROM_TEAM_DRIVE: 'move_from_team_drive', On 2017/06/12 08:03:28, fukino wrote: > These ...
3 years, 6 months ago (2017-06-12 10:35:23 UTC) #32
fukino
LGTM. Thanks! https://codereview.chromium.org/2930443002/diff/250001/chrome/app/chromeos_strings.grdp File chrome/app/chromeos_strings.grdp (right): https://codereview.chromium.org/2930443002/diff/250001/chrome/app/chromeos_strings.grdp#newcode85 chrome/app/chromeos_strings.grdp:85: <message name="IDS_FILE_BROWSER_DRIVE_CONFIRM_MOVE_TO_TEAM_DRIVE_BODY" desc="Part of message in the ...
3 years, 6 months ago (2017-06-12 10:41:59 UTC) #33
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/2930443002/270001
3 years, 6 months ago (2017-06-12 13:49:00 UTC) #39
commit-bot: I haz the power
Committed patchset #15 (id:270001) as https://chromium.googlesource.com/chromium/src/+/63f99bb69d83795394a801343c3827de017ecbbb
3 years, 6 months ago (2017-06-12 14:18:38 UTC) #42
yamaguchi
3 years, 6 months ago (2017-06-14 11:24:04 UTC) #43
Message was sent while issue was closed.
https://codereview.chromium.org/2930443002/diff/250001/chrome/app/chromeos_st...
File chrome/app/chromeos_strings.grdp (right):

https://codereview.chromium.org/2930443002/diff/250001/chrome/app/chromeos_st...
chrome/app/chromeos_strings.grdp:85: <message
name="IDS_FILE_BROWSER_DRIVE_CONFIRM_MOVE_TO_TEAM_DRIVE_BODY" desc="Part of
message in the confirmation dialog box when moving or copying files into a Team
Drive.">
On 2017/06/12 10:41:59, fukino wrote:
> On 2017/06/12 10:35:23, yamaguchi wrote:
> > Should we also change these IDS_* message names mode describes the actual
> text,
> > like *_DRIVE_CONFIRM_GAIN_ACCESS ?
> 
> It's OK if the ID name describes the message content itself.

Done.

Powered by Google App Engine
This is Rietveld 408576698