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

Issue 10825218: Simplify implementation of FindEntryByPathSync (Closed)

Created:
8 years, 4 months ago by achuithb
Modified:
8 years, 4 months ago
Reviewers:
satorux1
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

Simplify implementation of FindEntryByPathSync In addition, RemoveEntry and RemoveChild now return void. BUG=137725 TEST=unit tests. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150448

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : remove FindChildAsync #

Patch Set 6 : remove FindChildAsync 2 #

Total comments: 8

Patch Set 7 : base_name #

Total comments: 2

Patch Set 8 : add dcheck #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -47 lines) Patch
M chrome/browser/chromeos/gdata/gdata_file_system.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_files.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_files.cc View 1 2 3 4 5 6 7 3 chunks +17 lines, -43 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
achuithb
Satoru-san, please take a look.
8 years, 4 months ago (2012-08-07 10:29:52 UTC) #1
satorux1
I'm confused. Why do we need FindChildAsync()? GDataEntry/GDataFile/GDataDirectory are designed for in-memory representation of the ...
8 years, 4 months ago (2012-08-07 10:43:46 UTC) #2
achuithb
My goal was to make all GDataDirectory methods async. FindChild is the only synchronous one, ...
8 years, 4 months ago (2012-08-07 22:17:15 UTC) #3
achuithb
On 2012/08/07 22:17:15, achuith.bhandarkar wrote: > My goal was to make all GDataDirectory methods async. ...
8 years, 4 months ago (2012-08-07 22:20:01 UTC) #4
satorux1
http://codereview.chromium.org/10825218/diff/12001/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/10825218/diff/12001/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode2869 chrome/browser/chromeos/gdata/gdata_file_system.cc:2869: parent_dir->RemoveEntry(entry); Is this a good thing to do? I ...
8 years, 4 months ago (2012-08-07 22:27:05 UTC) #5
achuithb
http://codereview.chromium.org/10825218/diff/12001/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/10825218/diff/12001/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode2869 chrome/browser/chromeos/gdata/gdata_file_system.cc:2869: parent_dir->RemoveEntry(entry); On 2012/08/07 22:27:05, satorux1 wrote: > Is this ...
8 years, 4 months ago (2012-08-07 22:28:32 UTC) #6
satorux1
On 2012/08/07 22:17:15, achuith.bhandarkar wrote: > My goal was to make all GDataDirectory methods async. ...
8 years, 4 months ago (2012-08-07 22:28:45 UTC) #7
achuithb
http://codereview.chromium.org/10825218/diff/12001/chrome/browser/chromeos/gdata/gdata_files.cc File chrome/browser/chromeos/gdata/gdata_files.cc (right): http://codereview.chromium.org/10825218/diff/12001/chrome/browser/chromeos/gdata/gdata_files.cc#newcode389 chrome/browser/chromeos/gdata/gdata_files.cc:389: const std::string& file_name(entry->base_name()); On 2012/08/07 22:27:05, satorux1 wrote: > ...
8 years, 4 months ago (2012-08-07 22:29:43 UTC) #8
achuithb
On 2012/08/07 22:28:45, satorux1 wrote: > On 2012/08/07 22:17:15, achuith.bhandarkar wrote: > > My goal ...
8 years, 4 months ago (2012-08-07 22:30:30 UTC) #9
satorux1
http://codereview.chromium.org/10825218/diff/12001/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/10825218/diff/12001/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode2869 chrome/browser/chromeos/gdata/gdata_file_system.cc:2869: parent_dir->RemoveEntry(entry); On 2012/08/07 22:28:32, achuith.bhandarkar wrote: > On 2012/08/07 ...
8 years, 4 months ago (2012-08-07 22:38:09 UTC) #10
achuithb
http://codereview.chromium.org/10825218/diff/12001/chrome/browser/chromeos/gdata/gdata_files.cc File chrome/browser/chromeos/gdata/gdata_files.cc (right): http://codereview.chromium.org/10825218/diff/12001/chrome/browser/chromeos/gdata/gdata_files.cc#newcode356 chrome/browser/chromeos/gdata/gdata_files.cc:356: RemoveChild(entry); On 2012/08/07 22:38:09, satorux1 wrote: > The new ...
8 years, 4 months ago (2012-08-07 22:48:35 UTC) #11
satorux1
LGTM with a suggestion http://codereview.chromium.org/10825218/diff/2006/chrome/browser/chromeos/gdata/gdata_files.cc File chrome/browser/chromeos/gdata/gdata_files.cc (right): http://codereview.chromium.org/10825218/diff/2006/chrome/browser/chromeos/gdata/gdata_files.cc#newcode389 chrome/browser/chromeos/gdata/gdata_files.cc:389: const std::string& base_name(entry->base_name()); maybe add ...
8 years, 4 months ago (2012-08-07 22:55:29 UTC) #12
achuithb
8 years, 4 months ago (2012-08-07 23:00:41 UTC) #13
http://codereview.chromium.org/10825218/diff/2006/chrome/browser/chromeos/gda...
File chrome/browser/chromeos/gdata/gdata_files.cc (right):

http://codereview.chromium.org/10825218/diff/2006/chrome/browser/chromeos/gda...
chrome/browser/chromeos/gdata/gdata_files.cc:389: const std::string&
base_name(entry->base_name());
On 2012/08/07 22:55:30, satorux1 wrote:
> maybe add
> 
> // The |entry| must be present in this directory.
> DCHECK_EQ(entry, FindChild(base_name));

Good idea. Done.

Powered by Google App Engine
This is Rietveld 408576698