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

Issue 9694016: Extend and refactor GDataFileBase and derived classes. (Closed)

Created:
8 years, 9 months ago by Ben Chan
Modified:
8 years, 9 months ago
Reviewers:
satorux1, zel, kuan
CC:
chromium-reviews, achuith+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Extend 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 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -33 lines) Patch
M chrome/browser/chromeos/gdata/gdata_file_system.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_files.h View 1 2 7 chunks +56 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_files.cc View 1 10 chunks +67 lines, -17 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Ben Chan
Splitted from https://chromiumcodereview.appspot.com/9662041/ as suggested by satorux@ https://chromiumcodereview.appspot.com/9694016/diff/1/chrome/browser/chromeos/gdata/gdata_files.h File chrome/browser/chromeos/gdata/gdata_files.h (right): https://chromiumcodereview.appspot.com/9694016/diff/1/chrome/browser/chromeos/gdata/gdata_files.h#newcode81 chrome/browser/chromeos/gdata/gdata_files.h:81: // GDataDirectory::TakeFile() ...
8 years, 9 months ago (2012-03-12 21:45:58 UTC) #1
Ben Chan
zel / satoru: Could you lgtm on this CL? It is just part of the ...
8 years, 9 months ago (2012-03-13 05:29:03 UTC) #2
satorux1
looking good. https://chromiumcodereview.appspot.com/9694016/diff/1/chrome/browser/chromeos/gdata/gdata_files.h File chrome/browser/chromeos/gdata/gdata_files.h (right): https://chromiumcodereview.appspot.com/9694016/diff/1/chrome/browser/chromeos/gdata/gdata_files.h#newcode78 chrome/browser/chromeos/gdata/gdata_files.h:78: virtual void UseOriginalFileName(); I got confused about ...
8 years, 9 months ago (2012-03-13 06:03:30 UTC) #3
Ben Chan
https://chromiumcodereview.appspot.com/9694016/diff/1/chrome/browser/chromeos/gdata/gdata_files.h File chrome/browser/chromeos/gdata/gdata_files.h (right): https://chromiumcodereview.appspot.com/9694016/diff/1/chrome/browser/chromeos/gdata/gdata_files.h#newcode78 chrome/browser/chromeos/gdata/gdata_files.h:78: virtual void UseOriginalFileName(); On 2012/03/13 06:03:30, satorux1 wrote: > ...
8 years, 9 months ago (2012-03-13 06:28:12 UTC) #4
satorux1
LGTM http://codereview.chromium.org/9694016/diff/4001/chrome/browser/chromeos/gdata/gdata_files.h File chrome/browser/chromeos/gdata/gdata_files.h (right): http://codereview.chromium.org/9694016/diff/4001/chrome/browser/chromeos/gdata/gdata_files.h#newcode78 chrome/browser/chromeos/gdata/gdata_files.h:78: // de-duplication. "name de-duplication" wasn't clear to me ...
8 years, 9 months ago (2012-03-13 06:32:01 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benchan@chromium.org/9694016/3003
8 years, 9 months ago (2012-03-13 06:56:59 UTC) #6
commit-bot: I haz the power
8 years, 9 months ago (2012-03-13 08:23:24 UTC) #7
Change committed as 126357

Powered by Google App Engine
This is Rietveld 408576698