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

Unified Diff: chrome/browser/component_updater/component_updater_utils.h

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_utils.h
diff --git a/chrome/browser/component_updater/component_updater_utils.h b/chrome/browser/component_updater/component_updater_utils.h
index f4b3fdddf0b616b60490a723b303ac7f05c90ce0..f1c29a1c251081080f1fc2762f5e0c5e71eb4575 100644
--- a/chrome/browser/component_updater/component_updater_utils.h
+++ b/chrome/browser/component_updater/component_updater_utils.h
@@ -9,6 +9,10 @@
class GURL;
+namespace base {
+class FilePath;
+}
+
namespace net {
class URLFetcher;
class URLFetcherDelegate;
@@ -55,6 +59,9 @@ int GetFetchError(const net::URLFetcher& fetcher);
// Returns true if the |status_code| represents a server error 5xx.
bool IsHttpServerError(int status_code);
+// Deletes the file and its directory, if the directory is empty.
waffles 2013/12/16 17:42:39 Maybe make a note about what is returned here. Sh
Sorin Jianu 2013/12/16 18:06:17 Changed the name and made the function return true
+bool DeleteFileAndParentDirectoryIfEmpty(const base::FilePath& filepath);
+
} // namespace component_updater
#endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698