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

Unified Diff: content/browser/download/save_file_manager.h

Issue 1519283002: Fix a use-after-free of SaveFileCreateInfo in SaveFileManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: content/browser/download/save_file_manager.h
diff --git a/content/browser/download/save_file_manager.h b/content/browser/download/save_file_manager.h
index 9b0abe502956a37687aadc2bbc5f2835dfa58d2f..83c6bdbe7a1e4f335ce471a5626f66412de42b35 100644
--- a/content/browser/download/save_file_manager.h
+++ b/content/browser/download/save_file_manager.h
@@ -161,7 +161,7 @@ class SaveFileManager : public base::RefCountedThreadSafe<SaveFileManager> {
// Lookup the SaveManager for this WebContents' saving browser context and
// inform it the saving job has been started.
- void OnStartSave(const SaveFileCreateInfo* info);
+ void OnStartSave(const SaveFileCreateInfo info);
// Update the SavePackage with the current state of a started saving job.
// If the SavePackage for this saving job is gone, cancel the request.
void OnUpdateSaveProgress(int save_item_id,
« no previous file with comments | « no previous file | content/browser/download/save_file_manager.cc » ('j') | content/browser/download/save_file_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698