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

Issue 12039005: drive: Deal with the root directory in the same way as others in MoveOperation. (Closed)

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

Description

drive: Deal with the root directory same as others in MoveOperation. Our current implementation of file moving is done in the following logic: "if(source!=root) RemoveFrom(source); if(target!=root) AddTo(target)" implicitly assuming "belonging to nowhere" means belonging to root. But this is not the case. This patch removes the "if !=root" checks and treats the root as same as other directories. BUG=169420 TEST=Manually test the steps in the bug report. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177997

Patch Set 1 #

Total comments: 9

Patch Set 2 : Review fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -57 lines) Patch
M chrome/browser/chromeos/drive/drive_file_system_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/move_operation.h View 1 1 chunk +15 lines, -17 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/move_operation.cc View 1 3 chunks +21 lines, -33 lines 0 comments Download
M chrome/browser/google_apis/fake_drive_service.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/google_apis/gdata_wapi_operations.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/google_apis/gdata_wapi_operations.cc View 1 3 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/google_apis/gdata_wapi_operations_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/google_apis/gdata_wapi_service.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/google_apis/gdata_wapi_url_generator.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/google_apis/gdata_wapi_url_generator.cc View 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
kinaba
Satoru, could you take a look?
7 years, 11 months ago (2013-01-21 08:21:34 UTC) #1
kinaba
https://codereview.chromium.org/12039005/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/12039005/diff/1/chrome/browser/chromeos/drive/file_system/move_operation.cc#newcode91 chrome/browser/chromeos/drive/file_system/move_operation.cc:91: // which effectively moves the file to the root ...
7 years, 11 months ago (2013-01-21 08:24:29 UTC) #2
satorux1
Thank you for working on this! https://codereview.chromium.org/12039005/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/12039005/diff/1/chrome/browser/chromeos/drive/file_system/move_operation.cc#newcode91 chrome/browser/chromeos/drive/file_system/move_operation.cc:91: // which effectively ...
7 years, 11 months ago (2013-01-22 06:51:50 UTC) #3
kinaba
https://codereview.chromium.org/12039005/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/12039005/diff/1/chrome/browser/chromeos/drive/file_system/move_operation.cc#newcode91 chrome/browser/chromeos/drive/file_system/move_operation.cc:91: // which effectively moves the file to the root ...
7 years, 11 months ago (2013-01-22 07:09:10 UTC) #4
satorux1
LGTM
7 years, 11 months ago (2013-01-22 07:13:26 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinaba@chromium.org/12039005/2016
7 years, 11 months ago (2013-01-22 07:21:33 UTC) #6
commit-bot: I haz the power
7 years, 11 months ago (2013-01-22 10:42:01 UTC) #7
Message was sent while issue was closed.
Change committed as 177997

Powered by Google App Engine
This is Rietveld 408576698