Fix WrtAccess singleton deinitialize issue
authorLongXiang <xiang.long@intel.com>
Tue, 29 Jan 2013 06:56:34 +0000 (14:56 +0800)
committerGerrit Code Review <gerrit2@kim11>
Wed, 30 Jan 2013 10:16:55 +0000 (19:16 +0900)
commit3267070c531c9f2790319afdd7d5fa2f3c456e91
treeb1052732979b9197ac31dc22bb3f52ee0d653418
parent20d815006b7e57966584af2ea58606108c549a6f
Fix WrtAccess singleton deinitialize issue

[Issue#] N/A
[Problem] If an iframe or opened window closed, the main frame or opener
window will fail to access device APIs.
[Cause] When iframe or child window be closed, the WrtAccess singleton
will be deinitialized, later ace check calls will fail the WrtAccess
initialized assertion.
[Solution] Count initialized plugins in WrtAccess.

Change-Id: Icd9c5eb0488912225d8dcf4bd222b0bd26ea29c8
src/Commons/WrtAccess/WrtAccess.cpp
src/Commons/WrtAccess/WrtAccess.h