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

Issue 10831375: gdata: Remove GDataDirectoryService::FindEntryByPathAndRunSync(). (Closed)

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

Description

gdata: Remove GDataDirectoryService::FindEntryByPathAndRunSync(). The number of callers of FindEntryByPathAndRunSync() in GDataFileSystem is reduced from 2 to 0, hence the function is finally removed from GDataDirectoryService. Along the way, GDataFileSystem::FindEntryByPathAsyncOnUIThread() is simplified and renamed to LoadIfNeeded(). Remove GDataFileSystem::FindEntryByPathSyncOnUIThread() as well. BUG=141196, 142420 TEST=file manager works as before Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=152154

Patch Set 1 #

Total comments: 5

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -106 lines) Patch
M chrome/browser/chromeos/gdata/gdata_directory_service.h View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_directory_service.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.h View 3 chunks +31 lines, -25 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.cc View 1 7 chunks +72 lines, -69 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
satorux1
the metadata lookup business is cleaned up. hope you like it.
8 years, 4 months ago (2012-08-17 17:28:38 UTC) #1
achuithb
I think the CL description needs to be updated.
8 years, 4 months ago (2012-08-17 19:19:31 UTC) #2
achuithb
I really like the CL! http://codereview.chromium.org/10831375/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/10831375/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode714 chrome/browser/chromeos/gdata/gdata_file_system.cc:714: // Post a task ...
8 years, 4 months ago (2012-08-17 19:36:49 UTC) #3
satorux1
I thought the patch description covered changed I made. Anything missing? http://codereview.chromium.org/10831375/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): ...
8 years, 4 months ago (2012-08-17 20:35:29 UTC) #4
achuithb
On 2012/08/17 20:35:29, satorux1 wrote: > I thought the patch description covered changed I made. ...
8 years, 4 months ago (2012-08-17 20:51:18 UTC) #5
achuithb
lgtm http://codereview.chromium.org/10831375/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/10831375/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode1996 chrome/browser/chromeos/gdata/gdata_file_system.cc:1996: DCHECK(entries.get()); On 2012/08/17 20:35:30, satorux1 wrote: > On ...
8 years, 4 months ago (2012-08-17 20:52:05 UTC) #6
achuithb
This is a good CL. The names are much clearer and the cleanup around LoadIfNeeded ...
8 years, 4 months ago (2012-08-17 20:52:54 UTC) #7
satorux1
8 years, 4 months ago (2012-08-17 20:57:34 UTC) #8
On 2012/08/17 20:51:18, achuith.bhandarkar wrote:
> On 2012/08/17 20:35:29, satorux1 wrote:
> > I thought the patch description covered changed I made. Anything missing?
> > 
> 
> Also remove GDataFileSystem::FindEntryByPathSyncOnUIThread.

Good point. Added.

> GetEntryInfo and ReadDirectoryByPath callbacks are broken up so LoadIfNeeded
is
> called first, and in the callback, GDataDirectoryService::GetEntryInfo and
> ReadDirectoryByPath are called.
> 
> LoadIfNeeded now takes a FileOperationCallback instead of a search path and
> FileEntryCallback.

I'd rather not to go into details about semantic changes in the patch
description, but thank you for the suggestions.

Powered by Google App Engine
This is Rietveld 408576698