Support Web storage security exception menu
authorJihoon Chung <jihoon.chung@samsung.com>
Sat, 4 May 2013 10:03:32 +0000 (19:03 +0900)
committerJihoon Chung <jihoon.chung@samsung.com>
Sat, 4 May 2013 10:09:58 +0000 (19:09 +0900)
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Support Web storage security exception menu
[SCMRequest] must be imported with wrt-commons, wrt-installer

Change-Id: Ia0d521a2d9064f45fe31b96bc966987264627b26

webapp-detail/advancedview.cpp [changed mode: 0755->0644]
webapp-detail/advancedview.h [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 226e393..9e0c0fb
@@ -56,6 +56,8 @@ AdvancedView::AdvancedView(Evas_Object *navi, DPL::String appID) :
         "Location";
     m_menuMap[SECURITY_SETTINGS_IDX_WEB_NOTIFICATION_USAGE] =
         "Web notification";
+    m_menuMap[SECURITY_SETTINGS_IDX_WEB_STORAGE_USAGE] =
+        "Web storage";
     m_menuMap[SECURITY_SETTINGS_IDX_EXCEPTIONS_SETTINGS] =
         "Exceptions Settings";
     m_menuMap[DEVELOPER_OPTIONS_IDX_MEMORY_SAVING_MODE] =
@@ -289,6 +291,8 @@ bool SettingData::isEnabled()
     } else if (m_index == SECURITY_SETTINGS_IDX_WEB_NOTIFICATION_USAGE) {
         key = VconfConfig::GetVconfKeyWebNotificationUsage(
             m_dao->getTzAppId());
+    } else if (m_index == SECURITY_SETTINGS_IDX_WEB_STORAGE_USAGE) {
+        key = VconfConfig::GetVconfKeyWebDatabaseUsage(m_dao->getTzAppId());
     } else if (m_index == DEVELOPER_OPTIONS_IDX_MEMORY_SAVING_MODE) {
         key = VconfConfig::GetVconfKeyMemorySavingMode(m_dao->getTzAppId());
     } else {
@@ -321,6 +325,8 @@ void SettingData::saveChange(bool state)
     } else if (m_index == SECURITY_SETTINGS_IDX_WEB_NOTIFICATION_USAGE) {
         key = VconfConfig::GetVconfKeyWebNotificationUsage(
             m_dao->getTzAppId());
+    } else if (m_index == SECURITY_SETTINGS_IDX_WEB_STORAGE_USAGE) {
+        key = VconfConfig::GetVconfKeyWebDatabaseUsage(m_dao->getTzAppId());
     } else if (m_index == DEVELOPER_OPTIONS_IDX_MEMORY_SAVING_MODE) {
         key = VconfConfig::GetVconfKeyMemorySavingMode(m_dao->getTzAppId());
     } else {
old mode 100755 (executable)
new mode 100644 (file)
index 904ce93..b60a075
@@ -47,6 +47,7 @@ enum MenuIndex {
     SECURITY_SETTINGS_IDX_SECURITY_POPUP_USAGE,
     SECURITY_SETTINGS_IDX_GEOLOCATION_USAGE = SECURITY_SETTINGS_IDX_START,
     SECURITY_SETTINGS_IDX_WEB_NOTIFICATION_USAGE,
+    SECURITY_SETTINGS_IDX_WEB_STORAGE_USAGE,
     SECURITY_SETTINGS_IDX_EXCEPTIONS_SETTINGS,
     SECURITY_SETTINGS_IDX_END = SECURITY_SETTINGS_IDX_EXCEPTIONS_SETTINGS,
     DEVELOPER_OPTIONS_IDX_START = SECURITY_SETTINGS_IDX_END,