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

Unified Diff: chrome/browser/component_updater/component_unpacker.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
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,

Powered by Google App Engine
This is Rietveld 408576698