update privilege for AddAppWidget()
authorkyeongwoo.lee <kyeongwoo.lee@samsung.com>
Wed, 10 Apr 2013 09:22:50 +0000 (18:22 +0900)
committerkyeongwoo.lee <kyeongwoo.lee@samsung.com>
Wed, 10 Apr 2013 09:22:50 +0000 (18:22 +0900)
Change-Id: I12025347a29703a4130018b31d17df2d6a239e74

src/FShell_AppWidgetProviderManagerImpl.cpp
src/core/FShell_NotificationManagerImpl.cpp

index 4dc4076..141ffc4 100644 (file)
@@ -258,7 +258,7 @@ int AddAppWidgetCallback(int ret, int pid, void *data)
 result
 _AppWidgetProviderManagerImpl::AddAppWidget(const Tizen::App::AppId& providerAppId, const Tizen::Base::String& providerName, const Tizen::Base::String& text, const Tizen::Base::String& userInfo)
 {
-       result r = _AccessController::CheckUserPrivilege(_PRV_SHORTCUT_INSTALL);
+       result r = _AccessController::CheckUserPrivilege(_PRV_APPWIDGETPROVIDER_INSTALL);
        SysTryReturnResult(NID_SHELL, !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
 
        SysTryReturnResult(NID_SHELL, providerAppId.IsEmpty()==false, E_INVALID_ARG, "The providerAppId is empty.");
index ff46cdb..18e3a25 100644 (file)
@@ -1073,7 +1073,7 @@ _NotificationManagerImpl::GetBadgeCount(const char* pkgName) const
        }
        else
        {
-               SysLog(NID_SHELL, "badge_get_count(%d)", badgeError);
+               SysLog(NID_SHELL, "badge_get_count failed(%d).", badgeError);
                return -1;
        }
 }