From: Joohyun Kim Date: Thu, 1 Aug 2013 23:50:17 +0000 (+0900) Subject: Remove privilege check on setting X-Git-Tag: submit/tizen/20131210.080830^2^2~204^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec22979268a4d9ae759e5c8019a30ed77f91df52;p=platform%2Fframework%2Fnative%2Fappfw.git Remove privilege check on setting Change-Id: I08bff25a16605b9103651878bdaadb088d69ce1b Signed-off-by: Joohyun Kim --- diff --git a/src/system/FSysSettingInfo.cpp b/src/system/FSysSettingInfo.cpp index ebb52c4..751b562 100644 --- a/src/system/FSysSettingInfo.cpp +++ b/src/system/FSysSettingInfo.cpp @@ -98,27 +98,18 @@ SettingInfo::GetValue(const String& key, UuId& value) result SettingInfo::SetWallpaper(const String& filePath) { - result r = E_SUCCESS; - r = _AccessController::CheckUserPrivilege(_PRV_SETTING); - SysTryReturn(NID_SYS, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED, ("[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method.")); return _SettingInfoImpl::SetWallpaper(filePath); } result SettingInfo::SetRingtone(const String& filePath) { - result r = E_SUCCESS; - r = _AccessController::CheckUserPrivilege(_PRV_SETTING); - SysTryReturn(NID_SYS, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED, ("[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method.")); return _SettingInfoImpl::SetRingtone(filePath); } result SettingInfo::SetVolume(const String& soundCategory, int level) { - result r = E_SUCCESS; - r = _AccessController::CheckUserPrivilege(_PRV_SETTING); - SysTryReturn(NID_SYS, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED, ("[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method.")); return _SettingInfoImpl::SetVolume(soundCategory, level); } @@ -136,28 +127,19 @@ SettingInfo::HasKey(const String& key) result SettingInfo::SetValue(const String& key, bool value) -{ - result r = E_SUCCESS; - r = _AccessController::CheckUserPrivilege(_PRV_SETTING); - SysTryReturn(NID_SYS, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED, ("[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method.")); +{ return _SettingInfoImpl::SetValue(key, value); } result SettingInfo::SetValue(const String& key, int value) { - result r = E_SUCCESS; - r = _AccessController::CheckUserPrivilege(_PRV_SETTING); - SysTryReturn(NID_SYS, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED, ("[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method.")); return _SettingInfoImpl::SetValue(key, value); } result SettingInfo::SetValue(const String& key, String value) { - result r = E_SUCCESS; - r = _AccessController::CheckUserPrivilege(_PRV_SETTING); - SysTryReturn(NID_SYS, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED, ("[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method.")); return _SettingInfoImpl::SetValue(key, value); } @@ -182,16 +164,12 @@ SettingInfo::ResetToFactoryDefault(void) result SettingInfo::SetValueAsync(const String& key, bool value, ISettingInfoSetValueAsyncResultListener* listener) { - result r = E_SUCCESS; - r = _AccessController::CheckUserPrivilege(_PRV_SETTING); - SysTryReturn(NID_SYS, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED, ("[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method.")); return _SettingInfoImpl::SetValueAsync(key, value, listener); } result SettingInfo::SetValueAsyncForPrivilegedKey(const String& key, bool value, ISettingInfoSetValueAsyncResultListener* listener) { - result r = E_SUCCESS; return _SettingInfoImpl::SetValueAsyncForPrivilegedKey(key, value, listener); }