Index: chrome/common/extensions/extension_file_util.h |
diff --git a/chrome/common/extensions/extension_file_util.h b/chrome/common/extensions/extension_file_util.h |
index c1241f17555c84f4980a9e06c3f0fcd77cc0d24c..b597fcc4d4a07db98cc452f42b8a722602a31f41 100644 |
--- a/chrome/common/extensions/extension_file_util.h |
+++ b/chrome/common/extensions/extension_file_util.h |
@@ -28,12 +28,14 @@ namespace extension_file_util { |
extern const char kInstallDirectoryName[]; |
// Copies |unpacked_source_dir| into the right location under |extensions_dir|. |
+// Deletes the source directory if |should_delete_source| is true. |
// The destination directiory is returned on success, or empty path is returned |
// on failure. |
FilePath InstallExtension(const FilePath& unpacked_source_dir, |
const std::string& id, |
const std::string& version, |
- const FilePath& extensions_dir); |
+ const FilePath& extensions_dir, |
+ bool should_delete_source); |
// Removes all versions of the extension with |id| from |extensions_dir|. |
void UninstallExtension(const FilePath& extensions_dir, |