| Index: chrome/browser/component_updater/component_unpacker.cc
|
| diff --git a/chrome/browser/component_updater/component_unpacker.cc b/chrome/browser/component_updater/component_unpacker.cc
|
| index 1e3e558ab071d20372ff69a819110f4deeed1b7f..744d90f5106467f9ae3fbe59764876b96aa5bbf2 100644
|
| --- a/chrome/browser/component_updater/component_unpacker.cc
|
| +++ b/chrome/browser/component_updater/component_unpacker.cc
|
| @@ -110,7 +110,7 @@ base::DictionaryValue* ReadManifest(const base::FilePath& unpack_path) {
|
| // being inserted into the target directory by another process or thread.
|
| bool MakeEmptyDirectory(const base::FilePath& path) {
|
| if (base::PathExists(path)) {
|
| - if (!base::Delete(path, true))
|
| + if (!base::DeleteFile(path, true))
|
| return false;
|
| }
|
| if (!file_util::CreateDirectory(path))
|
| @@ -186,7 +186,7 @@ ComponentUnpacker::ComponentUnpacker(const std::vector<uint8>& pk_hash,
|
| patcher,
|
| installer,
|
| &extended_error_);
|
| - base::Delete(unpack_diff_path, true);
|
| + base::DeleteFile(unpack_diff_path, true);
|
| unpack_diff_path.clear();
|
| error_ = result;
|
| if (error_ != kNone) {
|
| @@ -223,5 +223,5 @@ ComponentUnpacker::ComponentUnpacker(const std::vector<uint8>& pk_hash,
|
|
|
| ComponentUnpacker::~ComponentUnpacker() {
|
| if (!unpack_path_.empty())
|
| - base::Delete(unpack_path_, true);
|
| + base::DeleteFile(unpack_path_, true);
|
| }
|
|
|