Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3152)

Unified Diff: chrome/utility/chrome_content_utility_client.cc

Issue 420503002: Componentize component_updater: Decouple in-process DeltaUpdateOp from out-of-process version. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/chrome_utility_messages.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « chrome/common/chrome_utility_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698