diff options
author | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-17 06:23:39 +0000 |
---|---|---|
committer | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-17 06:23:39 +0000 |
commit | 3ea4ba8af75eb37860c15d02af94f272e5bbc235 (patch) | |
tree | 0771e770a2941b25a355799bcf4684cae3f8dd70 /webkit | |
parent | da43c922862594b234472ef44701505a94fcf300 (diff) | |
download | chromium_src-3ea4ba8af75eb37860c15d02af94f272e5bbc235.zip chromium_src-3ea4ba8af75eb37860c15d02af94f272e5bbc235.tar.gz chromium_src-3ea4ba8af75eb37860c15d02af94f272e5bbc235.tar.bz2 |
Crash fix in fileapi::FileSystemOperation::DidGetUsageAndQuotaAndRunTask
https://chromiumcodereview.appspot.com/10008047 introduced delete-with-inflight-tasks in Write sequence but I failed to convert this callback to use WeakPtr().
BUG=128178
TEST=manual test
Review URL: https://chromiumcodereview.appspot.com/10408006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137635 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/fileapi/file_system_operation.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/fileapi/file_system_operation.cc b/webkit/fileapi/file_system_operation.cc index da2a94d..0ca2490 100644 --- a/webkit/fileapi/file_system_operation.cc +++ b/webkit/fileapi/file_system_operation.cc @@ -482,7 +482,7 @@ void FileSystemOperation::GetUsageAndQuotaThenRunTask( origin, FileSystemTypeToQuotaStorageType(type), base::Bind(&FileSystemOperation::DidGetUsageAndQuotaAndRunTask, - base::Unretained(this), params)); + weak_factory_.GetWeakPtr(), params)); } void FileSystemOperation::DidGetUsageAndQuotaAndRunTask( |