Privilege feature location change SecurityOriginDB to WrtDB
authorleerang song <leerang.song@samsung.com>
Mon, 18 Mar 2013 09:02:31 +0000 (18:02 +0900)
committerGerrit Code Review <gerrit2@kim11>
Tue, 19 Mar 2013 07:15:36 +0000 (16:15 +0900)
[Issue#] TDIS-4313
[Problem] N/A
[Cause] N/A
[Solution] N/A
[SCMRequest] This commit should be release with wrt-commons.

Change-Id: I5df1b30000ba9955c8c46c5a080fbea520d0fa6a

src/jobs/widget_install/task_database.cpp [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 341edf4..775ddf8
@@ -36,6 +36,7 @@
 #include <dpl/log/log.h>
 #include <dpl/assert.h>
 #include <wrt-commons/security-origin-dao/security_origin_dao.h>
+#include <dpl/wrt-dao-ro/widget_dao_types.h>
 #include <string>
 #include <sstream>
 #include <ace_api_install.h>
@@ -152,6 +153,8 @@ void TaskDatabase::StepSecurityOriginDBInsert()
     LogDebug("Create Security origin database");
     // automatically create security origin database
     using namespace SecurityOriginDB;
+    using namespace WrtDB;
+
     SecurityOriginDAO dao(m_context.locations->getPkgId());
 
     // Checking privilege list for setting security origin exception data
@@ -161,6 +164,8 @@ void TaskDatabase::StepSecurityOriginDBInsert()
         if (result != g_W3CPrivilegeTextMap.end()) {
             if (result->second == FEATURE_USER_MEDIA) {
                 dao.setPrivilegeSecurityOriginData(result->second, false);
+            } else if (result->second == FEATURE_FULLSCREEN_MODE) {
+                continue;
             } else {
                 dao.setPrivilegeSecurityOriginData(result->second);
             }