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

Unified Diff: chrome/browser/component_updater/background_downloader_win.cc

Issue 102993014: Reset is_completed_ before attempting a new crx component download. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/component_updater/background_downloader_win.cc
diff --git a/chrome/browser/component_updater/background_downloader_win.cc b/chrome/browser/component_updater/background_downloader_win.cc
index ee6508a6fbabbe3ca432ae0d83bd8f7e82d4e2e1..cb02663b737f14bcb8dd17ee56b1a0d034764a05 100644
--- a/chrome/browser/component_updater/background_downloader_win.cc
+++ b/chrome/browser/component_updater/background_downloader_win.cc
@@ -389,6 +389,10 @@ void BackgroundDownloader::BeginDownload(const GURL& url) {
DCHECK(!timer_);
+ is_completed_ = false;
+ download_start_time_ = base::Time::Now();
+ job_stuck_begin_time_ = download_start_time_;
+
HRESULT hr = QueueBitsJob(url);
if (FAILED(hr)) {
EndDownload(hr);
@@ -402,9 +406,6 @@ void BackgroundDownloader::BeginDownload(const GURL& url) {
base::TimeDelta::FromSeconds(kJobPollingIntervalSec),
this,
&BackgroundDownloader::OnDownloading);
-
- download_start_time_ = base::Time::Now();
- job_stuck_begin_time_ = download_start_time_;
}
// Called any time the timer fires.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698