summaryrefslogtreecommitdiff
path: root/xfa/fxfa/app/xfa_ffapp.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-10-18 16:48:16 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-18 16:48:16 -0700
commit4e903136cf0f02578c0e47c6738b633c96814b62 (patch)
treef6c85bfe408c728b9b2dbfcaf60316912945643d /xfa/fxfa/app/xfa_ffapp.cpp
parentf328d0d378b8df8a3416988d96c34f1d3f9d26d1 (diff)
downloadpdfium-4e903136cf0f02578c0e47c6738b633c96814b62.tar.xz
Merge IFWL_App and FWL_AppImp together
The IFWL_App class just acts as a proxy to the FWL_AppImp code. This Cl removes FWL_AppImp and merges the code back up to IFWL_App, simplifying the object hierarchy. Review-Url: https://codereview.chromium.org/2430563003
Diffstat (limited to 'xfa/fxfa/app/xfa_ffapp.cpp')
-rw-r--r--xfa/fxfa/app/xfa_ffapp.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/xfa/fxfa/app/xfa_ffapp.cpp b/xfa/fxfa/app/xfa_ffapp.cpp
index 6bedcd41a0..642ee56e9a 100644
--- a/xfa/fxfa/app/xfa_ffapp.cpp
+++ b/xfa/fxfa/app/xfa_ffapp.cpp
@@ -74,18 +74,12 @@ void CXFA_FileRead::Release() {
CXFA_FFApp::CXFA_FFApp(IXFA_AppProvider* pProvider)
: m_pProvider(pProvider),
m_pWidgetMgrDelegate(nullptr),
- m_pFWLApp(IFWL_App::Create(this)) {
+ m_pFWLApp(pdfium::MakeUnique<IFWL_App>(this)) {
FWL_SetApp(m_pFWLApp.get());
- m_pFWLApp->Initialize();
CXFA_TimeZoneProvider::Create();
}
CXFA_FFApp::~CXFA_FFApp() {
- if (m_pFWLApp) {
- m_pFWLApp->Finalize();
- m_pFWLApp->Release();
- }
-
CXFA_TimeZoneProvider::Destroy();
}