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

Issue 22920004: Reimplement MoveOperation. (Closed)

Created:
7 years, 4 months ago by hidehiko
Modified:
7 years, 4 months ago
Reviewers:
hashimoto, kinaba
CC:
chromium-reviews, nkostylev+watch_chromium.org, tfarina, oshima+watch_chromium.org, tzik+watch_chromium.org, kinuko+watch, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Reimplement MoveOperation. The main goal of this CL is fixing the condition to skip Rename(). Instead of adding more complicated condition to MoveOperation, this CL simplifies the whole MoveOperation implementation. This is also the preparation to use DriveServiceInterface::MoveResource on Drive API v2. BUG=241814 TEST=Ran unit_tests and tested manually. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218789

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+319 lines, -179 lines) Patch
M chrome/browser/chromeos/drive/file_system.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/file_system/copy_operation.cc View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/file_system/move_operation.h View 2 chunks +63 lines, -67 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/move_operation.cc View 1 2 4 chunks +178 lines, -105 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/move_operation_unittest.cc View 3 chunks +60 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/drive/resource_metadata.cc View 1 2 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/drive/resource_metadata_unittest.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
hidehiko
Thank you for your review in advance, - hidehiko
7 years, 4 months ago (2013-08-21 07:22:21 UTC) #1
kinaba
lgtm! I guess you can remove many methods from ResourceMetadata (as a separate patch).
7 years, 4 months ago (2013-08-21 07:37:22 UTC) #2
hashimoto
lgtm https://codereview.chromium.org/22920004/diff/1/chrome/browser/chromeos/drive/file_system/move_operation.cc File chrome/browser/chromeos/drive/file_system/move_operation.cc (right): https://codereview.chromium.org/22920004/diff/1/chrome/browser/chromeos/drive/file_system/move_operation.cc#newcode25 chrome/browser/chromeos/drive/file_system/move_operation.cc:25: DCHECK(metadata); nit: Do we need this? At least, ...
7 years, 4 months ago (2013-08-21 07:49:08 UTC) #3
hidehiko
Thank you for your review. PTAL? https://codereview.chromium.org/22920004/diff/1/chrome/browser/chromeos/drive/file_system/move_operation.cc File chrome/browser/chromeos/drive/file_system/move_operation.cc (right): https://codereview.chromium.org/22920004/diff/1/chrome/browser/chromeos/drive/file_system/move_operation.cc#newcode25 chrome/browser/chromeos/drive/file_system/move_operation.cc:25: DCHECK(metadata); On 2013/08/21 ...
7 years, 4 months ago (2013-08-21 08:07:00 UTC) #4
hashimoto
lgtm, thanks
7 years, 4 months ago (2013-08-21 08:12:44 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/22920004/7001
7 years, 4 months ago (2013-08-21 08:14:37 UTC) #6
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chromeos/drive/file_system/move_operation.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 4 months ago (2013-08-21 08:14:43 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/22920004/7001
7 years, 4 months ago (2013-08-21 10:19:27 UTC) #8
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chromeos/drive/file_system/move_operation.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 4 months ago (2013-08-21 10:19:37 UTC) #9
hidehiko
Rebased and resolved conflict. Sending to CQ again...
7 years, 4 months ago (2013-08-21 16:20:30 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/22920004/22001
7 years, 4 months ago (2013-08-21 16:20:47 UTC) #11
commit-bot: I haz the power
7 years, 4 months ago (2013-08-21 19:02:22 UTC) #12
Message was sent while issue was closed.
Change committed as 218789

Powered by Google App Engine
This is Rietveld 408576698