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

Issue 10268023: gdata: Remove use of FindEntryByPathAsync() from gdata_file_system_proxy.cc (Closed)

Created:
8 years, 7 months ago by satorux1
Modified:
8 years, 7 months ago
Reviewers:
achuithb
CC:
chromium-reviews, achuith+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

gdata: Remove use of FindEntryByPathAsync() from gdata_file_system_proxy.cc Instead use GetFileInfoByPathAsync() and ReadDirectoryByPathAsync(). This is in preparation for making FindEntryByPathAsync() private. BUG=chromium-os:30251 TEST=gdata in the file manager works as before Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=134770

Patch Set 1 #

Patch Set 2 : use GetEntryInfoByPathAsync instead #

Total comments: 4

Patch Set 3 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -45 lines) Patch
M chrome/browser/chromeos/gdata/gdata_file_system.h View 1 2 5 chunks +27 lines, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.cc View 1 2 4 chunks +66 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system_proxy.h View 1 2 chunks +6 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc View 1 2 7 chunks +31 lines, -34 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc View 1 2 16 chunks +50 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/mock_gdata_file_system.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
satorux1
These are the last callers of FindEntryByPathAsync(). Will make it private in the next patch.
8 years, 7 months ago (2012-05-01 06:55:49 UTC) #1
achuithb
http://codereview.chromium.org/10268023/diff/4002/chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc File chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc (right): http://codereview.chromium.org/10268023/diff/4002/chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc#newcode60 chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc:60: void GDataGDataEntryProtoToFileUtilProxyEntry( GDataGData? I think one GData is sufficient? ...
8 years, 7 months ago (2012-05-01 09:21:44 UTC) #2
satorux1
http://codereview.chromium.org/10268023/diff/4002/chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc File chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc (right): http://codereview.chromium.org/10268023/diff/4002/chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc#newcode60 chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc:60: void GDataGDataEntryProtoToFileUtilProxyEntry( On 2012/05/01 09:21:44, achuith.bhandarkar wrote: > GDataGData? ...
8 years, 7 months ago (2012-05-01 17:24:31 UTC) #3
achuithb
8 years, 7 months ago (2012-05-01 18:55:56 UTC) #4
On 2012/05/01 17:24:31, satorux1 wrote:
>
http://codereview.chromium.org/10268023/diff/4002/chrome/browser/chromeos/gda...
> File chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc (right):
> 
>
http://codereview.chromium.org/10268023/diff/4002/chrome/browser/chromeos/gda...
> chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc:60: void
> GDataGDataEntryProtoToFileUtilProxyEntry(
> On 2012/05/01 09:21:44, achuith.bhandarkar wrote:
> > GDataGData? I think one GData is sufficient?
> 
> Good catch! Fixed.
> 
> 
> > This method should just return FileUtilProxyEntry. 
> > 
> > I don't think you need the additional methods
> 
> You are absolutely right. Fixed.
> 
> 
> > GDataDirectoryProtoToFileUtilProxyEntry/GDataFileProtoToFileUtilProxyEntry. 
> > 
> > In OnReadDirectory, you can directly call
> > entries.push_back(GDataEntryProtoToFileUtilProxyEntry(proto.gdata_entry()));
> 
>
http://codereview.chromium.org/10268023/diff/4002/chrome/browser/chromeos/gda...
> chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc:68:
> entry->last_modified_time = file_info.last_modified;
> On 2012/05/01 09:21:44, achuith.bhandarkar wrote:
> > You should just set entry->is_directory here from file_info.is_directory.
> 
> The code was so bad. Good to have a great code reviewer. :)

It wasn't so bad! You're harsh on yourself. You've done more than your part in
doing good code reviews in drive and maintaining code quality.

lgtm! Thanks again for all the cleanup efforts.

Powered by Google App Engine
This is Rietveld 408576698