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

Issue 10831212: gdata: Add GDataDirectoryService::GetEntryInfoPairByPaths() (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: Add GDataDirectoryService::GetEntryInfoPairByPaths() This function will be used to replace two calls of FindEntryByPathSync() placed in one function (ex. GDataFileSystem::CopyOnUIThread()). With this function we expect to be able to eliminate 8 callers of FindEntryByPathSync(). BUG=137694 TEST=added unit tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150627

Patch Set 1 #

Total comments: 4

Patch Set 2 : address comments #

Total comments: 4

Patch Set 3 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -0 lines) Patch
M chrome/browser/chromeos/gdata/gdata_files.h View 1 3 chunks +51 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_files.cc View 1 2 3 chunks +76 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_files_unittest.cc View 1 1 chunk +67 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_test_util.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_test_util.cc View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
satorux1
A weapon to shave more sync callers.
8 years, 4 months ago (2012-08-08 20:04:11 UTC) #1
achuithb
http://codereview.chromium.org/10831212/diff/1/chrome/browser/chromeos/gdata/gdata_files.cc File chrome/browser/chromeos/gdata/gdata_files.cc (right): http://codereview.chromium.org/10831212/diff/1/chrome/browser/chromeos/gdata/gdata_files.cc#newcode1188 chrome/browser/chromeos/gdata/gdata_files.cc:1188: return; Why is this necessary? Why not look for ...
8 years, 4 months ago (2012-08-08 20:50:32 UTC) #2
satorux1
http://codereview.chromium.org/10831212/diff/1/chrome/browser/chromeos/gdata/gdata_files.cc File chrome/browser/chromeos/gdata/gdata_files.cc (right): http://codereview.chromium.org/10831212/diff/1/chrome/browser/chromeos/gdata/gdata_files.cc#newcode1188 chrome/browser/chromeos/gdata/gdata_files.cc:1188: return; On 2012/08/08 20:50:32, achuith.bhandarkar wrote: > Why is ...
8 years, 4 months ago (2012-08-08 21:21:21 UTC) #3
achuithb
lgtm http://codereview.chromium.org/10831212/diff/7/chrome/browser/chromeos/gdata/gdata_files.cc File chrome/browser/chromeos/gdata/gdata_files.cc (right): http://codereview.chromium.org/10831212/diff/7/chrome/browser/chromeos/gdata/gdata_files.cc#newcode1186 chrome/browser/chromeos/gdata/gdata_files.cc:1186: result->first.path = first_path; You could optionally add a ...
8 years, 4 months ago (2012-08-08 22:02:47 UTC) #4
satorux1
8 years, 4 months ago (2012-08-08 22:13:34 UTC) #5
http://codereview.chromium.org/10831212/diff/7/chrome/browser/chromeos/gdata/...
File chrome/browser/chromeos/gdata/gdata_files.cc (right):

http://codereview.chromium.org/10831212/diff/7/chrome/browser/chromeos/gdata/...
chrome/browser/chromeos/gdata/gdata_files.cc:1186: result->first.path =
first_path;
On 2012/08/08 22:02:47, achuith.bhandarkar wrote:
> You could optionally add a member like
> void EntryInfoPair::Init(const FilePath&, GDataFileError,
> scoped_ptr<GDataEntryProto>); to do this in one line. Up to you.

Thank you for the suggestion, but I'd keep this as is.

http://codereview.chromium.org/10831212/diff/7/chrome/browser/chromeos/gdata/...
chrome/browser/chromeos/gdata/gdata_files.cc:1191: callback.Run(result.Pass());
On 2012/08/08 22:02:47, achuith.bhandarkar wrote:
> Let's also add a comment here saying that if the first one fails, we don't
> continue.

Done.

Powered by Google App Engine
This is Rietveld 408576698