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

Unified Diff: printing/printed_document.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
« no previous file with comments | « ppapi/proxy/ppapi_proxy_test.cc ('k') | storage/browser/database/database_quota_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printed_document.cc
diff --git a/printing/printed_document.cc b/printing/printed_document.cc
index 472ebd5b88582217e6f26a28f7907cfc0334ccf4..c4f2fb7b7a0a9d5364024dcd055ab2aced15a57d 100644
--- a/printing/printed_document.cc
+++ b/printing/printed_document.cc
@@ -81,10 +81,9 @@ void DebugDumpSettings(const base::string16& doc_name,
job_settings, base::JSONWriter::OPTIONS_PRETTY_PRINT, &settings_str);
scoped_refptr<base::RefCountedMemory> data =
base::RefCountedString::TakeString(&settings_str);
- blocking_runner->PostTask(
- FROM_HERE,
- base::Bind(
- &DebugDumpDataTask, doc_name, FILE_PATH_LITERAL(".json"), data));
+ blocking_runner->PostTask(FROM_HERE, base::Bind(&DebugDumpDataTask, doc_name,
+ FILE_PATH_LITERAL(".json"),
+ base::RetainedRef(data)));
}
} // namespace
@@ -136,7 +135,8 @@ void PrintedDocument::SetPage(int page_number,
if (!g_debug_dump_info.Get().empty()) {
immutable_.blocking_runner_->PostTask(
- FROM_HERE, base::Bind(&DebugDumpPageTask, name(), page));
+ FROM_HERE,
+ base::Bind(&DebugDumpPageTask, name(), base::RetainedRef(page)));
}
}
« no previous file with comments | « ppapi/proxy/ppapi_proxy_test.cc ('k') | storage/browser/database/database_quota_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698