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

Unified Diff: download_action.cc

Issue 3521016: AU: Start checkpointing update progress. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: address review comments Created 10 years, 2 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 | « download_action.h ('k') | download_action_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: download_action.cc
diff --git a/download_action.cc b/download_action.cc
index 608eeb9bb65b51f00445bc6c514ec7b186fa4dbb..4462ab889da9ae7bf90f0ed55454ffe1e715b92a 100644
--- a/download_action.cc
+++ b/download_action.cc
@@ -20,8 +20,10 @@ namespace chromeos_update_engine {
// Use a buffer to reduce the number of IOPS on SSD devices.
const size_t kFileWriterBufferSize = 128 * 1024; // 128 KiB
-DownloadAction::DownloadAction(HttpFetcher* http_fetcher)
- : writer_(NULL),
+DownloadAction::DownloadAction(PrefsInterface* prefs,
+ HttpFetcher* http_fetcher)
+ : prefs_(prefs),
+ writer_(NULL),
http_fetcher_(http_fetcher),
delegate_(NULL),
bytes_received_(0) {}
@@ -61,7 +63,7 @@ void DownloadAction::PerformAction() {
new GzipDecompressingFileWriter(split_file_writer_.get()));
writer_ = decompressing_file_writer_.get();
} else {
- delta_performer_.reset(new DeltaPerformer);
+ delta_performer_.reset(new DeltaPerformer(prefs_));
writer_ = delta_performer_.get();
}
}
« no previous file with comments | « download_action.h ('k') | download_action_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698