From cf20e9fe9b0ab4d71daede26d57349a6f9b05f1c Mon Sep 17 00:00:00 2001 From: "hb.min" Date: Tue, 27 Nov 2012 01:37:05 +0900 Subject: [PATCH] Modify the privilege enum to URI style Change-Id: Ifbdf7624689e61fe7ce2a34dbd6b338561551f45 --- src/FShlNotificationManager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/FShlNotificationManager.cpp b/src/FShlNotificationManager.cpp index 212c322..8fbd8da 100644 --- a/src/FShlNotificationManager.cpp +++ b/src/FShlNotificationManager.cpp @@ -128,7 +128,7 @@ NotificationManager::Notify(const AppId& appId,const NotificationMessage& notiMe { SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use."); - result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION_SERVICE); + result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATIONMANAGER); SysTryReturnResult(NID_APP, !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method."); return __pNotificationManagerImpl->NotifyMessageImpl(appId, notiMessage); @@ -184,7 +184,7 @@ NotificationManager::NotifyOngoingActivity(const AppId& appId,const Notification { SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use."); - result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION_SERVICE); + result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATIONMANAGER); SysTryReturnResult(NID_APP, !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method."); return __pNotificationManagerImpl->NotifyMessageImpl(appId, notiMessage, true); @@ -206,7 +206,7 @@ NotificationManager::RemoveOngoingActivityNotification(const AppId& appId) { SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use."); - result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION_SERVICE); + result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATIONMANAGER); SysTryReturnResult(NID_APP, !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method."); return __pNotificationManagerImpl->RemoveOngoingActivityNotificationOnBehalf(appId); @@ -228,7 +228,7 @@ NotificationManager::RemoveNotification(const AppId& appId) { SysAssertf(__pNotificationManagerImpl != null, "Not yet constructed. Construct() should be called before use."); - result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATION_SERVICE); + result r = _AccessController::CheckUserPrivilege(_PRV_NOTIFICATIONMANAGER); SysTryReturnResult(NID_APP, !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method."); return __pNotificationManagerImpl->RemoveNotificationOnBehalf(appId); -- 2.7.4