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

Issue 10735059: gdata cleanup: Make GDataFileSystem::AddUploadedFile() take scoped_ptr<DocumentEntry>. (Closed)

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

gdata cleanup: Make GDataFileSystem::AddUploadedFile() take scoped_ptr<DocumentEntry>. Previously this function takes a DocumentEntry* pointer obtained from UploadFileInfo. This implicitly requires caller to keep the DocumentEntry object (or the UploadFileInfo struct) alive until the call is complete. Changing this argument to a scoped pointer makes ownership transfer explicit. BUG=none TEST=unit_tests (GData*), lumpy Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=146190

Patch Set 1 #

Total comments: 4

Patch Set 2 : Achuith's comment. #

Patch Set 3 : Rebase @ revision 146183. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -44 lines) Patch
M chrome/browser/chromeos/gdata/gdata_download_observer.cc View 1 2 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.cc View 1 2 7 chunks +14 lines, -27 lines 0 comments Download
M chrome/browser/chromeos/gdata/mock_gdata_file_system.h View 1 2 1 chunk +7 lines, -7 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
hshi1
PTAL. Clean-up only, no functional change.
8 years, 5 months ago (2012-07-11 18:06:17 UTC) #1
achuithb
lgtm. Thanks for the cleanup! This is much better. http://codereview.chromium.org/10735059/diff/1/chrome/browser/chromeos/gdata/gdata_download_observer.cc File chrome/browser/chromeos/gdata/gdata_download_observer.cc (right): http://codereview.chromium.org/10735059/diff/1/chrome/browser/chromeos/gdata/gdata_download_observer.cc#newcode522 chrome/browser/chromeos/gdata/gdata_download_observer.cc:522: ...
8 years, 5 months ago (2012-07-11 18:56:22 UTC) #2
satorux1
LGTM. Not being able to mockable is unfortunate, but overall, removing the brittle pieces of ...
8 years, 5 months ago (2012-07-11 19:17:16 UTC) #3
hshi1
http://codereview.chromium.org/10735059/diff/1/chrome/browser/chromeos/gdata/gdata_download_observer.cc File chrome/browser/chromeos/gdata/gdata_download_observer.cc (right): http://codereview.chromium.org/10735059/diff/1/chrome/browser/chromeos/gdata/gdata_download_observer.cc#newcode522 chrome/browser/chromeos/gdata/gdata_download_observer.cc:522: // Take ownership of the DocumentEntry object. It will ...
8 years, 5 months ago (2012-07-11 19:25:44 UTC) #4
commit-bot: I haz the power
8 years, 5 months ago (2012-07-11 19:26:37 UTC) #5

Powered by Google App Engine
This is Rietveld 408576698