| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/installer/setup/archive_patch_helper.h" | 5 #include "chrome/installer/setup/archive_patch_helper.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/files/file_util.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "chrome/installer/util/lzma_util.h" | 9 #include "chrome/installer/util/lzma_util.h" |
| 10 #include "courgette/courgette.h" | 10 #include "courgette/courgette.h" |
| 11 #include "third_party/bspatch/mbspatch.h" | 11 #include "third_party/bspatch/mbspatch.h" |
| 12 | 12 |
| 13 namespace installer { | 13 namespace installer { |
| 14 | 14 |
| 15 ArchivePatchHelper::ArchivePatchHelper(const base::FilePath& working_directory, | 15 ArchivePatchHelper::ArchivePatchHelper(const base::FilePath& working_directory, |
| 16 const base::FilePath& compressed_archive, | 16 const base::FilePath& compressed_archive, |
| 17 const base::FilePath& patch_source, | 17 const base::FilePath& patch_source, |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 << " and generating file " << target_.value() | 96 << " and generating file " << target_.value() |
| 97 << " using bsdiff. err=" << result; | 97 << " using bsdiff. err=" << result; |
| 98 | 98 |
| 99 // Ensure a partial output is not left behind. | 99 // Ensure a partial output is not left behind. |
| 100 base::DeleteFile(target_, false); | 100 base::DeleteFile(target_, false); |
| 101 | 101 |
| 102 return false; | 102 return false; |
| 103 } | 103 } |
| 104 | 104 |
| 105 } // namespace installer | 105 } // namespace installer |
| OLD | NEW |