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

Unified Diff: components/printing/service/public/cpp/pdf_compositor_client.cc

Issue 2919823004: Add error handling and unit test for pdf compositor service (Closed)
Patch Set: rebase Created 3 years, 5 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: components/printing/service/public/cpp/pdf_compositor_client.cc
diff --git a/components/printing/service/public/cpp/pdf_compositor_client.cc b/components/printing/service/public/cpp/pdf_compositor_client.cc
index 51aaa560bc646631d29015b5c6799b18605b9d3c..e88eb4b772f988266697e99c5526acc78be20173 100644
--- a/components/printing/service/public/cpp/pdf_compositor_client.cc
+++ b/components/printing/service/public/cpp/pdf_compositor_client.cc
@@ -19,8 +19,9 @@ void OnCompositePdf(
printing::mojom::PdfCompositorPtr compositor,
printing::mojom::PdfCompositor::CompositePdfCallback callback,
scoped_refptr<base::SequencedTaskRunner> task_runner,
+ mojom::PdfCompositor::Status status,
mojo::ScopedSharedBufferHandle pdf_handle) {
- task_runner->PostTask(FROM_HERE, base::BindOnce(std::move(callback),
+ task_runner->PostTask(FROM_HERE, base::BindOnce(std::move(callback), status,
base::Passed(&pdf_handle)));
}

Powered by Google App Engine
This is Rietveld 408576698