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

Unified Diff: chrome/browser/download/download_item.cc

Issue 5852001: Fix the last scoped_refptr misuses in NewRunnableMethod. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 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 | remoting/jingle_glue/jingle_client_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_item.cc
diff --git a/chrome/browser/download/download_item.cc b/chrome/browser/download/download_item.cc
index 1d93667300bdbc73996ec44023124e4f372518e9..43321aa7b050aeb78fc9f86f96aecaca2fab5c82 100644
--- a/chrome/browser/download/download_item.cc
+++ b/chrome/browser/download/download_item.cc
@@ -404,7 +404,8 @@ void DownloadItem::OnSafeDownloadFinished(DownloadFileManager* file_manager) {
BrowserThread::FILE, FROM_HERE,
NewRunnableMethod(
file_manager, &DownloadFileManager::OnFinalDownloadName,
- id(), GetTargetFilePath(), false, download_manager_));
+ id(), GetTargetFilePath(), false,
+ make_scoped_refptr(download_manager_)));
return;
}
« no previous file with comments | « no previous file | remoting/jingle_glue/jingle_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698