summaryrefslogtreecommitdiffstats
path: root/chrome/browser/safe_browsing/two_phase_uploader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/safe_browsing/two_phase_uploader.cc')
-rw-r--r--chrome/browser/safe_browsing/two_phase_uploader.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/safe_browsing/two_phase_uploader.cc b/chrome/browser/safe_browsing/two_phase_uploader.cc
index c5558d1..6fb3dc4 100644
--- a/chrome/browser/safe_browsing/two_phase_uploader.cc
+++ b/chrome/browser/safe_browsing/two_phase_uploader.cc
@@ -153,7 +153,7 @@ void TwoPhaseUploaderImpl::OnURLFetchUploadProgress(
DCHECK(CalledOnValidThread());
DVLOG(3) << __FUNCTION__ << " " << source->GetURL().spec()
<< " " << current << "/" << total;
- if (state_ == UPLOAD_FILE)
+ if (state_ == UPLOAD_FILE && !progress_callback_.is_null())
progress_callback_.Run(current, total);
}