Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1017)

Unified Diff: chrome/browser/component_updater/component_updater_service.cc

Issue 113533004: Clean up empty directories after install and on errors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean up job files. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698