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

Unified Diff: chrome/installer/util/delete_old_versions.h

Issue 2273113002: Delete old files after an update. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@harvester
Patch Set: CR grt #4 Created 4 years, 4 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
« no previous file with comments | « chrome/installer/util/BUILD.gn ('k') | chrome/installer/util/delete_old_versions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/delete_old_versions.h
diff --git a/chrome/installer/util/delete_old_versions.h b/chrome/installer/util/delete_old_versions.h
new file mode 100644
index 0000000000000000000000000000000000000000..a1671c3ea5fbbc7b1094badea4069e78b0637cea
--- /dev/null
+++ b/chrome/installer/util/delete_old_versions.h
@@ -0,0 +1,23 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_INSTALLER_UTIL_DELETE_OLD_VERSIONS_H_
+#define CHROME_INSTALLER_UTIL_DELETE_OLD_VERSIONS_H_
+
+namespace base {
+class FilePath;
+}
+
+namespace installer {
+
+// Deletes files that belong to old versions of Chrome. chrome.exe,
+// new_chrome.exe and their associated version directories are never deleted.
+// Also, no file is deleted for a given version if a .exe or .dll file for that
+// version is in use. Returns true if no files that belong to an old version of
+// Chrome remain.
+bool DeleteOldVersions(const base::FilePath& install_dir);
+
+} // namespace installer
+
+#endif // CHROME_INSTALLER_UTIL_DELETE_OLD_VERSIONS_H_
« no previous file with comments | « chrome/installer/util/BUILD.gn ('k') | chrome/installer/util/delete_old_versions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698