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..1a91e1994592292b213e0417b25d0f12bdce8a34 100644 |
--- a/chrome/browser/component_updater/component_updater_service.cc |
+++ b/chrome/browser/component_updater/component_updater_service.cc |
@@ -954,8 +954,8 @@ void CrxUpdateService::Install(scoped_ptr<CRXContext> context, |
context->fingerprint, |
component_patcher_.get(), |
context->installer); |
- if (!base::DeleteFile(crx_path, false)) |
- NOTREACHED() << crx_path.value(); |
+ component_updater::DeleteFileAndParentDirectoryIfEmpty(crx_path); |
Sorin Jianu
2013/12/15 23:12:35
I will add a unit test to verify this post conditi
Sorin Jianu
2013/12/15 23:15:16
Actually, I can't for now.
|
+ |
// Why unretained? See comment at top of file. |
BrowserThread::PostDelayedTask( |
BrowserThread::UI, |