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

Issue 10855243: child_files_ and child_directories_ have resource_ids instead of GDataFile* and GDataDirectory*. (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

child_files_ and child_directories_ have resource_ids instead of GDataFile* and GDataDirectory*. * GDataFileCollection and GDataDirectoryCollection are replaced by GDataChildMap which has resource_id as value instead of GDataFile* and GDataDirectory*. * FindChild returns a resource_id instead of GDataEntry* * Get rid of AddChild as it's only being used in one place. * TakeOverEntries return type is now void instead of bool. * Add helper TakeOverEntry to avoid cut n paste. BUG=137725 TEST=unit tests. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=152415

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : rebase #

Total comments: 10

Patch Set 7 : satorux feedback #

Patch Set 8 : #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -75 lines) Patch
M chrome/browser/chromeos/gdata/gdata_directory_service.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_files.h View 1 2 3 4 5 6 7 2 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_files.cc View 1 2 3 4 5 6 7 5 chunks +59 lines, -58 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
achuithb
Please review.
8 years, 4 months ago (2012-08-20 10:09:07 UTC) #1
satorux1
http://codereview.chromium.org/10855243/diff/6004/chrome/browser/chromeos/gdata/gdata_directory_service.cc File chrome/browser/chromeos/gdata/gdata_directory_service.cc (right): http://codereview.chromium.org/10855243/diff/6004/chrome/browser/chromeos/gdata/gdata_directory_service.cc#newcode304 chrome/browser/chromeos/gdata/gdata_directory_service.cc:304: GetEntryByResourceId(current_dir->FindChild(components[i])); looks a bit scary. Maybe: const std::string resource_id ...
8 years, 4 months ago (2012-08-20 16:40:08 UTC) #2
achuithb
PTAL http://codereview.chromium.org/10855243/diff/6004/chrome/browser/chromeos/gdata/gdata_directory_service.cc File chrome/browser/chromeos/gdata/gdata_directory_service.cc (right): http://codereview.chromium.org/10855243/diff/6004/chrome/browser/chromeos/gdata/gdata_directory_service.cc#newcode304 chrome/browser/chromeos/gdata/gdata_directory_service.cc:304: GetEntryByResourceId(current_dir->FindChild(components[i])); On 2012/08/20 16:40:08, satorux1 wrote: > looks ...
8 years, 4 months ago (2012-08-20 21:14:57 UTC) #3
satorux1
LGTM
8 years, 4 months ago (2012-08-20 21:36:36 UTC) #4
achuithb
8 years, 4 months ago (2012-08-20 21:40:24 UTC) #5
On 2012/08/20 21:36:36, satorux1 wrote:
> LGTM

Thank you!

Powered by Google App Engine
This is Rietveld 408576698