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

Unified Diff: chrome/installer/util/installer_state.cc

Issue 6538025: Temp dir cleanup:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months 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/installer/util/installer_state.cc
===================================================================
--- chrome/installer/util/installer_state.cc (revision 75264)
+++ chrome/installer/util/installer_state.cc (working copy)
@@ -388,7 +388,8 @@
}
void InstallerState::RemoveOldVersionDirectories(
- const Version& latest_version) const {
+ const Version& latest_version,
+ const FilePath& temp_path) const {
file_util::FileEnumerator version_enum(target_path(), false,
file_util::FileEnumerator::DIRECTORIES);
scoped_ptr<Version> version;
@@ -417,7 +418,8 @@
VLOG(1) << "Deleting directory: " << next_version.value();
scoped_ptr<WorkItem> item(
- WorkItem::CreateDeleteTreeWorkItem(next_version, key_files));
+ WorkItem::CreateDeleteTreeWorkItem(next_version, temp_path,
+ key_files));
if (!item->Do())
item->Rollback();
}

Powered by Google App Engine
This is Rietveld 408576698