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

Unified Diff: chrome/browser/download/download_manager.h

Issue 3498002: Fix leak of a DownloadItem in SavePackage::Init. (Closed)
Patch Set: rebase Created 10 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/download/save_package.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_manager.h
diff --git a/chrome/browser/download/download_manager.h b/chrome/browser/download/download_manager.h
index f4dc78d7ae13626d22bb5bd4c98a9d99d97c530f..4bbf49aa02fe9416304f46ff26136115050049ba 100644
--- a/chrome/browser/download/download_manager.h
+++ b/chrome/browser/download/download_manager.h
@@ -135,7 +135,8 @@ class DownloadManager
// deleted is returned back to the caller.
int RemoveAllDownloads();
- // Called when a Save Page As download is started.
+ // Called when a Save Page As download is started. Transfers ownership
+ // of |download_item| to the DownloadManager.
void SavePageAsDownloadStarted(DownloadItem* download_item);
// Download the object at the URL. Used in cases such as "Save Link As..."
« no previous file with comments | « no previous file | chrome/browser/download/save_package.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698