| 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..467856ffbc792bd5492146755ea127a5199b2621 100644
|
| --- a/chrome/common/extensions/extension_file_util.h
|
| +++ b/chrome/common/extensions/extension_file_util.h
|
| @@ -23,17 +23,24 @@ class DictionaryValue;
|
| // Utilties for manipulating the on-disk storage of extensions.
|
| namespace extension_file_util {
|
|
|
| +enum DeleteSource {
|
| + DELETE_SOURCE_NO,
|
| + DELETE_SOURCE_YES,
|
| +};
|
| +
|
| // The name of the directory inside the profile that we store installed
|
| // extension in.
|
| 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,
|
| + DeleteSource should_delete_source);
|
|
|
| // Removes all versions of the extension with |id| from |extensions_dir|.
|
| void UninstallExtension(const FilePath& extensions_dir,
|
|
|