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

Unified Diff: components/update_client/component_patcher_operation.cc

Issue 2031193002: [Courgette] Refactor BSDiff namespaces and bsdiff::search() interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync. Created 4 years, 5 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/utility/chrome_content_utility_client.cc ('k') | courgette/bsdiff_memory_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/component_patcher_operation.cc
diff --git a/components/update_client/component_patcher_operation.cc b/components/update_client/component_patcher_operation.cc
index 2da622daacbcecfd2c53f5c594ebd559b7e10a17..956bc0214465c19136067ad3a004f1313cc5057c 100644
--- a/components/update_client/component_patcher_operation.cc
+++ b/components/update_client/component_patcher_operation.cc
@@ -208,8 +208,8 @@ void DeltaUpdateOpPatch::DoRun(const ComponentUnpacker::Callback& callback) {
if (operation_ == kBsdiff) {
DonePatching(callback,
- courgette::ApplyBinaryPatch(input_abs_path_, patch_abs_path_,
- output_abs_path_));
+ bsdiff::ApplyBinaryPatch(input_abs_path_, patch_abs_path_,
+ output_abs_path_));
} else if (operation_ == kCourgette) {
DonePatching(callback, courgette::ApplyEnsemblePatch(
input_abs_path_.value().c_str(),
@@ -224,7 +224,7 @@ void DeltaUpdateOpPatch::DonePatching(
const ComponentUnpacker::Callback& callback,
int result) {
if (operation_ == kBsdiff) {
- if (result == courgette::OK) {
+ if (result == bsdiff::OK) {
callback.Run(ComponentUnpacker::kNone, 0);
} else {
callback.Run(ComponentUnpacker::kDeltaOperationFailure,
« no previous file with comments | « chrome/utility/chrome_content_utility_client.cc ('k') | courgette/bsdiff_memory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698