[Tizen-submit] 15293: Changes to Tizen:IVI/privacy-manager-server

noreply at tizen.org noreply at tizen.org
Wed Oct 2 06:38:44 GMT 2013


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

Thank You,

[This message was auto-generated]

---

Request: #15293

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


Message:
Submitter: hb.min <hb.min at samsung.com>
Comments: Fix build error
Git project: platform/core/security/privacy-manager
Tag: submit/tizen/20131002.063934
Commit: 36be0084cba8f71fe0ca26aca6760f0835993cb3 Fix build error on privacy-manager

State:   new        2013-10-02T06:37:21 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.063934-0-g36be0084cba8f71fe0ca26aca6760f0835993cb3
 License:        Apache-2.0
 Summary:        Privacy Management
 Group:          Security/Libraries
@@ -24,6 +24,7 @@
 BuildRequires:  pkgconfig(libxml-2.0)
 BuildRequires:  pkgconfig(pkgmgr-info)
 BuildRequires:  pkgconfig(sqlite3)
+BuildRequires:	pkgconfig(capi-system-info)
 
 Requires(post):   /sbin/ldconfig
 Requires(postun): /sbin/ldconfig

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);

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


More information about the Tizen-submit mailing list