DescriptionAdd permission check to FakeDriveService
Add a new method SetUserPermission() to set the user's permission for a file.
Check the permission in DeleteResource(), TrashResource(), UpdateResource() and InitiateUploadExistingFile().
This change doesn't cover:
- Permission check for the parent when adding/removing entries to a directory.
- Cases where the permission is changed while upload is in progress. (even not sure what happens in the production)
BUG=340933
TEST=unit_tests --gtest_filter="FakeDriveServiceTest.*"
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288062
Patch Set 1 : #Patch Set 2 : rebase #
Messages
Total messages: 11 (0 generated)
|