Index: chrome/browser/safe_browsing/two_phase_uploader.cc |
diff --git a/chrome/browser/safe_browsing/two_phase_uploader.cc b/chrome/browser/safe_browsing/two_phase_uploader.cc |
index 93720ead770e3b3d5f4ae60cd183e1d05753b36e..aa80d263df1230480f86f2e5cc58aa2d709b8f6d 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); |
} |