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

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

Issue 1815363002: Add RetainedRef uses where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/save_package.cc
diff --git a/content/browser/download/save_package.cc b/content/browser/download/save_package.cc
index 5686fcfe8f48be2956f52fbb36a777f1445e182e..40b3d812001010347be5041e26a5d8bd38d2eac6 100644
--- a/content/browser/download/save_package.cc
+++ b/content/browser/download/save_package.cc
@@ -1094,7 +1094,8 @@ void SavePackage::OnSerializedHtmlWithLocalLinksResponse(
BrowserThread::PostTask(
BrowserThread::FILE, FROM_HERE,
base::Bind(&SaveFileManager::UpdateSaveProgress, file_manager_,
- save_item->id(), new_data, static_cast<int>(data.size())));
+ save_item->id(), base::RetainedRef(new_data),
+ static_cast<int>(data.size())));
}
// Current frame is completed saving, call finish in file thread.
« no previous file with comments | « content/browser/download/save_file_resource_handler.cc ('k') | content/browser/indexed_db/indexed_db_quota_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698