Bug 776664: Check "sms" capability for PSms. r=mounir

This commit is contained in:
Chris Jones 2012-08-16 12:34:53 -07:00
parent 1b5491626e
commit 241a9adf47

View File

@ -15,6 +15,7 @@
#include "chrome/common/process_watcher.h"
#include "AppProcessPermissions.h"
#include "CrashReporterParent.h"
#include "History.h"
#include "IDBFactory.h"
@ -1358,6 +1359,9 @@ ContentParent::DeallocPExternalHelperApp(PExternalHelperAppParent* aService)
PSmsParent*
ContentParent::AllocPSms()
{
if (!AppProcessHasPermission(this, "sms")) {
return nullptr;
}
return new SmsParent();
}