| Index: update_attempter.cc
|
| diff --git a/update_attempter.cc b/update_attempter.cc
|
| index 85500e61e65e6c4dafc027a7d3113165030a0f8a..d4769ed25ed384d08fba51606e76fff733b15b89 100644
|
| --- a/update_attempter.cc
|
| +++ b/update_attempter.cc
|
| @@ -22,7 +22,7 @@
|
| #include "update_engine/download_action.h"
|
| #include "update_engine/filesystem_copier_action.h"
|
| #include "update_engine/libcurl_http_fetcher.h"
|
| -#include "update_engine/multi_http_fetcher.h"
|
| +#include "update_engine/multi_range_http_fetcher.h"
|
| #include "update_engine/omaha_request_action.h"
|
| #include "update_engine/omaha_request_params.h"
|
| #include "update_engine/omaha_response_handler_action.h"
|
| @@ -185,8 +185,8 @@ void UpdateAttempter::Update(const std::string& app_version,
|
| OmahaEvent::kTypeUpdateDownloadStarted),
|
| new LibcurlHttpFetcher(GetProxyResolver())));
|
| shared_ptr<DownloadAction> download_action(
|
| - new DownloadAction(prefs_, new MultiHttpFetcher<LibcurlHttpFetcher>(
|
| - GetProxyResolver())));
|
| + new DownloadAction(prefs_, new MultiRangeHTTPFetcher(
|
| + new LibcurlHttpFetcher(GetProxyResolver()))));
|
| shared_ptr<OmahaRequestAction> download_finished_action(
|
| new OmahaRequestAction(prefs_,
|
| omaha_request_params_,
|
| @@ -554,10 +554,9 @@ void UpdateAttempter::MarkDeltaUpdateFailure() {
|
| }
|
|
|
| void UpdateAttempter::SetupDownload() {
|
| - MultiHttpFetcher<LibcurlHttpFetcher>* fetcher =
|
| - dynamic_cast<MultiHttpFetcher<LibcurlHttpFetcher>*>(
|
| - download_action_->http_fetcher());
|
| - MultiHttpFetcher<LibcurlHttpFetcher>::RangesVect ranges;
|
| + MultiRangeHTTPFetcher* fetcher =
|
| + dynamic_cast<MultiRangeHTTPFetcher*>(download_action_->http_fetcher());
|
| + MultiRangeHTTPFetcher::RangesVect ranges;
|
| if (response_handler_action_->install_plan().is_resume) {
|
| // Resuming an update so fetch the update manifest metadata first.
|
| int64_t manifest_metadata_size = 0;
|
|
|