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 f3fa282c13c418ef8d491eb3fa8309c49876bb94..be7be1f3208da58ffad9dd0aa0607b5b48bfb0a0 100644 |
--- a/components/update_client/component_patcher_operation.cc |
+++ b/components/update_client/component_patcher_operation.cc |
@@ -12,6 +12,7 @@ |
#include "base/files/memory_mapped_file.h" |
#include "base/location.h" |
#include "base/strings/string_number_conversions.h" |
+#include "components/update_client/out_of_process_patcher.h" |
#include "components/update_client/update_client.h" |
#include "components/update_client/update_client_errors.h" |
#include "components/update_client/utils.h" |
@@ -169,7 +170,7 @@ void DeltaUpdateOpCreate::DoRun(const ComponentPatcher::Callback& callback) { |
DeltaUpdateOpPatch::DeltaUpdateOpPatch( |
const std::string& operation, |
- scoped_refptr<OutOfProcessPatcher> out_of_process_patcher) |
+ const scoped_refptr<OutOfProcessPatcher>& out_of_process_patcher) |
: operation_(operation), out_of_process_patcher_(out_of_process_patcher) { |
DCHECK(operation == kBsdiff || operation == kCourgette); |
} |