Chromium Code Reviews
Descriptiondrive: 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. #Messages
Total messages: 7 (0 generated)
|