OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_INSTALLER_UTIL_DELETE_OLD_VERSIONS_H_ | |
6 #define CHROME_INSTALLER_UTIL_DELETE_OLD_VERSIONS_H_ | |
7 | |
8 namespace base { | |
9 class FilePath; | |
10 } | |
11 | |
12 class CallbackWorkItem; | |
13 | |
14 // Deletes files that belong to old versions of Chrome from |install_dir|. | |
15 // chrome.exe, new_chrome.exe and their associated version directories are never | |
16 // deleted. Also, no file is deleted for a given version if a .exe or .dll file | |
17 // for that version is in use. Returns true if all old files were deleted | |
18 // successfully. | |
19 bool DeleteOldVersions(const base::FilePath& install_dir); | |
20 | |
21 // Wrapper around DeleteOldVersions() which can be used to instantiate a | |
22 // CallbackWorkItem. | |
23 bool DeleteOldVersionsCallback(const base::FilePath& install_dir, | |
grt (UTC plus 2)
2016/02/24 20:06:17
how about replacing this with AddDeleteOldVersions
fdoray
2016/02/25 18:26:48
Done. InstallerState instead of base::FilePath bec
| |
24 const CallbackWorkItem& work_item); | |
25 | |
26 #endif // CHROME_INSTALLER_UTIL_DELETE_OLD_VERSIONS_H_ | |
OLD | NEW |