summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyunwoo Kim <hwlove.kim@samsung.com>2013-03-29 21:48:14 +0900
committerHyunwoo Kim <hwlove.kim@samsung.com>2013-03-29 21:48:26 +0900
commitbe8a1f68326be27b237b55849fdb09bfb5a2b343 (patch)
tree47fd1e10c5113ee42d6489d37d9ff3896438076e
parent170a0b40aa72b793df4394f625656c525b91c56b (diff)
downloadprivacy-manager-be8a1f68326be27b237b55849fdb09bfb5a2b343.tar.gz
privacy-manager-be8a1f68326be27b237b55849fdb09bfb5a2b343.tar.bz2
privacy-manager-be8a1f68326be27b237b55849fdb09bfb5a2b343.zip
remove in client side
Change-Id: I82ff024d360a79de6103bf025e3d42bd006e0000 Signed-off-by: Hyunwoo Kim <hwlove.kim@samsung.com>
-rw-r--r--client/src/PrivacyManagerClient.cpp5
-rw-r--r--packaging/privacy-manager-server.manifest2
2 files changed, 5 insertions, 2 deletions
diff --git a/client/src/PrivacyManagerClient.cpp b/client/src/PrivacyManagerClient.cpp
index dca2592..6979767 100644
--- a/client/src/PrivacyManagerClient.cpp
+++ b/client/src/PrivacyManagerClient.cpp
@@ -71,12 +71,15 @@ PrivacyManagerClient::addAppPackagePrivacyInfo(const std::string pkgId, const st
int
PrivacyManagerClient::removeAppPackagePrivacyInfo(const std::string pkgId)
{
+#ifdef __READ_DB_IPC__
int result;
m_pSocketClient->connect();
m_pSocketClient->call("removePrivacyInfo", pkgId, &result);
m_pSocketClient->disconnect();
-
return result;
+#else
+ return PrivacyDb::getInstance()->removeAppPackagePrivacyInfo(pkgId);
+#endif
}
int
diff --git a/packaging/privacy-manager-server.manifest b/packaging/privacy-manager-server.manifest
index cb3db80..831e525 100644
--- a/packaging/privacy-manager-server.manifest
+++ b/packaging/privacy-manager-server.manifest
@@ -7,7 +7,7 @@
</provide>
</define>
<request>
- <domain name="privacy-manager-server" />
+ <domain name="privacy-manager" />
</request>
<assign>
<filesystem path="/usr/bin/privacy-manager-server" label="privacy-manager::daemon" exec_label="privacy-manager::daemon"/>