DescriptionExtend and refactor GDataFileBase and derived classes.
This CL makes the following changes:
1. Change GDataFile to name regular files by the 'title' attribute
instead of the original 'filename' at the time of upload. Also,
rename 'original_file_name' to 'title'.
2. Add GDataFileBase::SetFileNameFromTitle() to reset the file name
of a GDataFileBase instance to its title before de-duplication.
3. Add resource ID and self link to GDataDirectory.
4. Add GDataDirectory::TakeFile() for transferring ownership of a
GDataFileBase instance from one directory to another.
BUG=chromium-os:26962
TEST=Tested the following:
1. Run "unit_tests --gtest_filter='*GData*'"
2. Verify that the CrOS file manager shows the 'title' attribute of a
regular file, which is consistent with the web interface as follows:
- Upload a new file.
- Check the file name shown in CrOS file manager and on the web.
- Rename the uploaded file.
- Check again the file name shown in CrOS file manager and on the web.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=126357
Patch Set 1 #
Total comments: 3
Patch Set 2 : #
Total comments: 1
Patch Set 3 : #
Messages
Total messages: 7 (0 generated)
|