commit | 2e2c529bddc30819cd4bf3387053c058052d9892 | [log] [tgz] |
---|---|---|
author | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Tue Dec 17 03:48:40 2013 |
committer | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Tue Dec 17 03:48:40 2013 |
tree | d1f4b97ea7dfa3aa54afe9a5e918ed12dc3fc10d | |
parent | a20994036ce038e9464185198e67d686cdf2f12e [diff] [blame] |
Clean up empty directories after install and on errors BUG=327880 Review URL: https://codereview.chromium.org/113533004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241142 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/component_updater/component_updater_service.cc b/chrome/browser/component_updater/component_updater_service.cc index 7fe35b9..5f998b30 100644 --- a/chrome/browser/component_updater/component_updater_service.cc +++ b/chrome/browser/component_updater/component_updater_service.cc
@@ -954,8 +954,9 @@ context->fingerprint, component_patcher_.get(), context->installer); - if (!base::DeleteFile(crx_path, false)) + if (!component_updater::DeleteFileAndEmptyParentDirectory(crx_path)) NOTREACHED() << crx_path.value(); + // Why unretained? See comment at top of file. BrowserThread::PostDelayedTask( BrowserThread::UI,