Bug 904934 - Remove mobilenetwork check. r=hsinyi

This commit is contained in:
Szu-Yu Chen [:aknow] 2013-12-23 10:59:43 +08:00
parent 5880cd1c97
commit ba71b5c8a1

View File

@ -102,8 +102,7 @@ MobileConnection::Init(nsPIDOMWindow* aWindow)
mWindow = do_GetWeakReference(aWindow);
mListener = new Listener(this);
if (!CheckPermission("mobilenetwork") &&
CheckPermission("mobileconnection")) {
if (CheckPermission("mobileconnection")) {
DebugOnly<nsresult> rv = mProvider->RegisterMobileConnectionMsg(mClientId, mListener);
NS_WARN_IF_FALSE(NS_SUCCEEDED(rv),
"Failed registering mobile connection messages with provider");