| Index: chrome/browser/chromeos/file_manager/zip_file_creator.cc
|
| diff --git a/chrome/browser/chromeos/file_manager/zip_file_creator.cc b/chrome/browser/chromeos/file_manager/zip_file_creator.cc
|
| index 19887d92d8d342c368e5c876248bf742d61003cd..0cbfc5994c7bcd82eb5bf8c21da7e19335d6fb1a 100644
|
| --- a/chrome/browser/chromeos/file_manager/zip_file_creator.cc
|
| +++ b/chrome/browser/chromeos/file_manager/zip_file_creator.cc
|
| @@ -75,12 +75,8 @@ void ZipFileCreator::CreateZipFile(base::File file) {
|
| void ZipFileCreator::ReportDone(bool success) {
|
| DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
|
|
| - // The current user of this class holds no reference to |this| so resetting
|
| - // the |utility_process_mojo_client_| here could release the last reference
|
| - // and delete |this|. So save |callback_| before resetting the client.
|
| - auto callback = base::ResetAndReturn(&callback_);
|
| utility_process_mojo_client_.reset();
|
| - callback.Run(success);
|
| + base::ResetAndReturn(&callback_).Run(success);
|
| }
|
|
|
| } // namespace file_manager
|
|
|