| Index: chrome/utility/chrome_content_utility_client.cc
|
| diff --git a/chrome/utility/chrome_content_utility_client.cc b/chrome/utility/chrome_content_utility_client.cc
|
| index c7d189f05bcf6b3b5ffd7a594ec88c4b75232f7a..4f7b8fe1c3d810304b1111add6c9066267f35518 100644
|
| --- a/chrome/utility/chrome_content_utility_client.cc
|
| +++ b/chrome/utility/chrome_content_utility_client.cc
|
| @@ -251,15 +251,12 @@ void ChromeContentUtilityClient::OnPatchFileBsdiff(
|
| const base::FilePath& patch_file,
|
| const base::FilePath& output_file) {
|
| if (input_file.empty() || patch_file.empty() || output_file.empty()) {
|
| - Send(new ChromeUtilityHostMsg_PatchFile_Failed(-1));
|
| + Send(new ChromeUtilityHostMsg_PatchFile_Finished(-1));
|
| } else {
|
| const int patch_status = courgette::ApplyBinaryPatch(input_file,
|
| patch_file,
|
| output_file);
|
| - if (patch_status != courgette::OK)
|
| - Send(new ChromeUtilityHostMsg_PatchFile_Failed(patch_status));
|
| - else
|
| - Send(new ChromeUtilityHostMsg_PatchFile_Succeeded());
|
| + Send(new ChromeUtilityHostMsg_PatchFile_Finished(patch_status));
|
| }
|
| ReleaseProcessIfNeeded();
|
| }
|
| @@ -269,16 +266,13 @@ void ChromeContentUtilityClient::OnPatchFileCourgette(
|
| const base::FilePath& patch_file,
|
| const base::FilePath& output_file) {
|
| if (input_file.empty() || patch_file.empty() || output_file.empty()) {
|
| - Send(new ChromeUtilityHostMsg_PatchFile_Failed(-1));
|
| + Send(new ChromeUtilityHostMsg_PatchFile_Finished(-1));
|
| } else {
|
| const int patch_status = courgette::ApplyEnsemblePatch(
|
| input_file.value().c_str(),
|
| patch_file.value().c_str(),
|
| output_file.value().c_str());
|
| - if (patch_status != courgette::C_OK)
|
| - Send(new ChromeUtilityHostMsg_PatchFile_Failed(patch_status));
|
| - else
|
| - Send(new ChromeUtilityHostMsg_PatchFile_Succeeded());
|
| + Send(new ChromeUtilityHostMsg_PatchFile_Finished(patch_status));
|
| }
|
| ReleaseProcessIfNeeded();
|
| }
|
|
|