[Tizen-submit] 15288: Changes to Tizen:Mobile/privacy-manager-server

noreply at tizen.org noreply at tizen.org
Wed Oct 2 06:18:48 GMT 2013


Hi,
hb.min have made the following changes to privacy-manager-server in project Tizen:Mobile. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #15288

  submit:       Tizen:Mobile:build/privacy-manager-server(cleanup) -> Tizen:Mobile


Message:
Submitter: hb.min <hb.min at samsung.com>
Comments: Sync with tizen_2.2
Git project: platform/core/security/privacy-manager
Tag: submit/tizen/20131002.061927
Commit: 77c9a55ff3b2874b44747dac1cf95ac4a3245585 Sync with tizen_2.2

State:   new        2013-10-02T06:17:14 tizenrobot
Comment: <no comment>
changes files:
--------------

spec files:
-----------
--- privacy-manager.spec
+++ privacy-manager.spec
@@ -1,7 +1,7 @@
 Name:           privacy-manager-server
 Version:        0.0.4
 Release:        0
-VCS:            platform/core/security/privacy-manager#submit/tizen/20130909.074254-0-g06258caa75592e076fa3c6549b0344dc253d6644
+VCS:            platform/core/security/privacy-manager#submit/tizen/20131002.061927-0-g77c9a55ff3b2874b44747dac1cf95ac4a3245585
 License:        Apache-2.0
 Summary:        Privacy Management
 Group:          Security/Libraries

other changes:
--------------

++++++ privacy-manager-server-0.0.4.tar.gz
--- client/CMakeLists.txt
+++ client/CMakeLists.txt
@@ -41,6 +41,12 @@
     MESSAGE("FILTER PKGs BY FILTERING LIST")
     ADD_DEFINITIONS("-D__FILTER_LISTED_PKG")
 ENDIF(FILTER_LISTED_PKG)
+## SET PRIVACY_POPUP FLAG
+OPTION (PRIVACY_POPUP "PRIVACY_POPUP" ON)
+IF(PRIVACY_POPUP)
+	MESSAGE("PRIVACY_POPUP IS ENABLED")
+	ADD_DEFINITIONS("-D__PRIVACY_POPUP")
+ENDIF(PRIVACY_POPUP)
 
 ###################################################################################################
 ## for libprivacy-manager-client (executable)
--- client/src/privacy_manager_client.cpp
+++ client/src/privacy_manager_client.cpp
@@ -127,9 +127,15 @@
 
 int privacy_manager_client_check_user_consented(const char *package_id, bool *consented)
 {
+
+#ifdef __PRIVACY_POPUP
 	PrivacyManagerClient* pInst = PrivacyManagerClient::getInstance();
 
 	return pInst->isUserPrompted(std::string(package_id), *consented);
+#else
+	*consented = true;
+	return PRIV_MGR_ERROR_SUCCESS;
+#endif
 }
 
 int privacy_manager_client_set_user_consented(const char *package_id, bool consented)
@@ -186,4 +192,4 @@
 	}
 
 	return PRIV_MGR_ERROR_SUCCESS;
-}
\ No newline at end of file
+}
--- common/inc/PrivacyIdInfo.h
+++ common/inc/PrivacyIdInfo.h
@@ -24,17 +24,20 @@
 class PrivacyIdInfo
 {
 private:
-	static std::map <std::string, std::string> m_privilegeToPrivacyMap;
+	static std::map< std::string, std::string > m_privilegeToPrivacyMap;
 	static bool m_isInitialized;
 
 public:
 	static int initialize(void);
 	static int getPrivacyIdFromPrivilege(const std::string privilege, std::string& privacyId);
-	static int getPrivacyIdListFromPrivilegeList(const std::list < std::string> privilegeList, std::list < std::string> & privacyIdList);
-	static int getAllPrivacyId(std::list < std::string >& privacyIdList);
+	static int getPrivilegeListFromPrivacyId(const std::string privacyId, std::list< std::string > & privilegeList);
+	static int getPrivacyIdListFromPrivilegeList(const std::list< std::string > privilegeList, std::list< std::string >& privacyIdList);
+	static int getAllPrivacyId(std::list< std::string >& privacyIdList);
 
 	static int getPrivaycDisplayName(const std::string privacyId, std::string& displayName);
 	static int getPrivaycDescription(const std::string privacyId, std::string& description);
+
+	static int isFeatureEnabled(const char* feature, bool& enabled);
 };
 

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list