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

Unified Diff: chrome/browser/chromeos/gdata/gdata_upload_file_info.cc

Issue 10540132: gdata: Convert GDataFileSystem::AddUploadFile() to asynchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase svn:trunk/src@142185 and resolve conflicts. Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/gdata/gdata_upload_file_info.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_upload_file_info.cc b/chrome/browser/chromeos/gdata/gdata_upload_file_info.cc
index dcda0342e11b8fc9e129bbcac40fe11250b08c68..6b24b2ff0097147ae2d5b93aa26ca6b534393b22 100644
--- a/chrome/browser/chromeos/gdata/gdata_upload_file_info.cc
+++ b/chrome/browser/chromeos/gdata/gdata_upload_file_info.cc
@@ -24,6 +24,11 @@ UploadFileInfo::UploadFileInfo()
}
UploadFileInfo::~UploadFileInfo() {
+ // The file stream is closed by the destructor asynchronously.
+ if (file_stream) {
+ delete file_stream;
+ file_stream = NULL;
+ }
}
int64 UploadFileInfo::SizeRemaining() const {

Powered by Google App Engine
This is Rietveld 408576698