Index: chrome/browser/component_updater/component_updater_service.cc |
diff --git a/chrome/browser/component_updater/component_updater_service.cc b/chrome/browser/component_updater/component_updater_service.cc |
index dff725f371cbafcae22f131268f7afed3e406a68..da28ac602784a730032046627821052d2568af09 100644 |
--- a/chrome/browser/component_updater/component_updater_service.cc |
+++ b/chrome/browser/component_updater/component_updater_service.cc |
@@ -954,8 +954,9 @@ void CrxUpdateService::Install(scoped_ptr<CRXContext> context, |
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, |