Index: chrome/browser/component_updater/component_unpacker.cc |
diff --git a/chrome/browser/component_updater/component_unpacker.cc b/chrome/browser/component_updater/component_unpacker.cc |
index 74b17853bacf6890421a15b6ae0302ac5ea9d0b0..67c66162e826bb8c47a1161bf5deb96caae1e543 100644 |
--- a/chrome/browser/component_updater/component_unpacker.cc |
+++ b/chrome/browser/component_updater/component_unpacker.cc |
@@ -18,6 +18,7 @@ |
#include "base/strings/stringprintf.h" |
#include "base/values.h" |
#include "chrome/browser/component_updater/component_patcher.h" |
+#include "chrome/browser/component_updater/component_patcher_operation.h" |
#include "chrome/browser/component_updater/component_updater_service.h" |
#include "crypto/secure_hash.h" |
#include "crypto/signature_verifier.h" |
@@ -101,14 +102,14 @@ ComponentUnpacker::ComponentUnpacker( |
const base::FilePath& path, |
const std::string& fingerprint, |
ComponentInstaller* installer, |
- bool in_process, |
+ scoped_refptr<OutOfProcessPatcher> out_of_process_patcher, |
scoped_refptr<base::SequencedTaskRunner> task_runner) |
: pk_hash_(pk_hash), |
path_(path), |
is_delta_(false), |
fingerprint_(fingerprint), |
installer_(installer), |
- in_process_(in_process), |
+ out_of_process_patcher_(out_of_process_patcher), |
error_(kNone), |
extended_error_(0), |
task_runner_(task_runner) { |
@@ -211,7 +212,7 @@ bool ComponentUnpacker::BeginPatching() { |
patcher_ = new ComponentPatcher(unpack_diff_path_, |
unpack_path_, |
installer_, |
- in_process_, |
+ out_of_process_patcher_, |
task_runner_); |
task_runner_->PostTask( |
FROM_HERE, |