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

Unified Diff: content/browser/download/download_file_impl.cc

Issue 10831302: Download resumption - Preliminary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed content unit tests. Created 8 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
Index: content/browser/download/download_file_impl.cc
diff --git a/content/browser/download/download_file_impl.cc b/content/browser/download/download_file_impl.cc
index 7599900f108da8ba87e9bd1e7801bd9c8307528b..043ad10c1c452ecc9e18318233b30f0af8e4a5df 100644
--- a/content/browser/download/download_file_impl.cc
+++ b/content/browser/download/download_file_impl.cc
@@ -139,7 +139,8 @@ void DownloadFileImpl::Detach(base::Closure callback) {
file_.Detach();
- BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, callback);
+ if (!callback.is_null())
+ BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, callback);
}
void DownloadFileImpl::Cancel() {

Powered by Google App Engine
This is Rietveld 408576698