mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 776664: Check "sms" capability for PSms. r=mounir
This commit is contained in:
parent
1b5491626e
commit
241a9adf47
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user