diff options
author | vmpstr <vmpstr@chromium.org> | 2016-03-21 13:28:47 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-21 20:30:28 +0000 |
commit | a34d11324e0767acd94d8754e3a117e072492cf4 (patch) | |
tree | ac723766c79172c76341b45aab9c1914169b4466 /printing | |
parent | 8a2f463d3726f944f5ec279664b25118fd3ccf3c (diff) | |
download | chromium_src-a34d11324e0767acd94d8754e3a117e072492cf4.zip chromium_src-a34d11324e0767acd94d8754e3a117e072492cf4.tar.gz chromium_src-a34d11324e0767acd94d8754e3a117e072492cf4.tar.bz2 |
Add RetainedRef uses where needed.
This patch adds RetainedRef uses where they are required. These
changes will be required when we remove automatic unwrapping of
scoped_refptrs in Bind.
Please see the bug for more context.
R=tzik@chromium.org, thakis@chromium.org, danakj@chromium.org
BUG=589048
Review URL: https://codereview.chromium.org/1815363002
Cr-Commit-Position: refs/heads/master@{#382371}
Diffstat (limited to 'printing')
-rw-r--r-- | printing/printed_document.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/printing/printed_document.cc b/printing/printed_document.cc index 472ebd5..c4f2fb7 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))); } } |