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

Unified Diff: pdf/pdfium/pdfium_engine.cc

Issue 2837663002: Cleanup PDF plugin code. (Closed)
Patch Set: Created 3 years, 8 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
« pdf/out_of_process_instance.cc ('K') | « pdf/pdf_engine.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdfium/pdfium_engine.cc
diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc
index 72a1c646b444db9515a67ac1c9edb1651572c90c..9a72ae22e038d369113d001013bd6da8196628bc 100644
--- a/pdf/pdfium/pdfium_engine.cc
+++ b/pdf/pdfium/pdfium_engine.cc
@@ -659,8 +659,8 @@ void ShutdownSDK() {
TearDownV8();
}
-PDFEngine* PDFEngine::Create(PDFEngine::Client* client) {
- return new PDFiumEngine(client);
+std::unique_ptr<PDFEngine> PDFEngine::Create(PDFEngine::Client* client) {
+ return base::MakeUnique<PDFiumEngine>(client);
}
PDFiumEngine::PDFiumEngine(PDFEngine::Client* client)
« pdf/out_of_process_instance.cc ('K') | « pdf/pdf_engine.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698