diff options
author | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-29 18:13:33 +0000 |
---|---|---|
committer | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-29 18:13:33 +0000 |
commit | ff7429b219645f6a2a73bd7227b18eed39c03c80 (patch) | |
tree | c7fbc2976cb8529dc68f6dde8c43be61240fc677 /chrome/browser/chromeos/gdata/drive_file_system.h | |
parent | 5c4bbbfbf6e8f5921306a4a3d4c82ee4a292f99c (diff) | |
download | chromium_src-ff7429b219645f6a2a73bd7227b18eed39c03c80.zip chromium_src-ff7429b219645f6a2a73bd7227b18eed39c03c80.tar.gz chromium_src-ff7429b219645f6a2a73bd7227b18eed39c03c80.tar.bz2 |
drive: Fix possible leak in DriveFileSystem::AddUploadedFile
Fix possible leak which can occur when the callback not getting called.
BUG=None
TEST=unit_tests --gtest_filter="DriveFileSystemTest.*"
Review URL: https://chromiumcodereview.appspot.com/10889018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153920 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/gdata/drive_file_system.h')
-rw-r--r-- | chrome/browser/chromeos/gdata/drive_file_system.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/chromeos/gdata/drive_file_system.h b/chrome/browser/chromeos/gdata/drive_file_system.h index 725ad6b..a5edcf3 100644 --- a/chrome/browser/chromeos/gdata/drive_file_system.h +++ b/chrome/browser/chromeos/gdata/drive_file_system.h @@ -541,12 +541,12 @@ class DriveFileSystem : public DriveFileSystemInterface, const FilePath& directory_path); // Continues to add an uploaded file after existing entry has been deleted. - void ContinueAddUploadedFile(AddUploadedFileParams* params, + void ContinueAddUploadedFile(scoped_ptr<AddUploadedFileParams> params, DriveFileError error, const FilePath& file_path); // Adds the uploaded file to the cache. - void AddUploadedFileToCache(AddUploadedFileParams* params, + void AddUploadedFileToCache(scoped_ptr<AddUploadedFileParams> params, DriveFileError error, const FilePath& file_path); |