Bug 1228479 - Remove redundant blob handling in BluetoothMapRequestHandle::ReplyToFolderListing, r=shuang

This commit is contained in:
Ben Tian 2015-11-27 14:03:03 +08:00
parent 829cbf2edb
commit b99794a59f

View File

@ -66,20 +66,8 @@ BluetoothMapRequestHandle::ReplyToFolderListing(long aMasId,
return nullptr;
}
if (XRE_GetProcessType() == GeckoProcessType_Default) {
// In-process reply
bs->ReplyToMapFolderListing(aMasId, aFolderlists,
new BluetoothVoidReplyRunnable(nullptr, promise));
} else {
ContentChild *cc = ContentChild::GetSingleton();
if (!cc) {
aRv.Throw(NS_ERROR_FAILURE);
return nullptr;
}
bs->ReplyToMapFolderListing(aMasId, aFolderlists,
new BluetoothVoidReplyRunnable(nullptr, promise));
}
bs->ReplyToMapFolderListing(aMasId, aFolderlists,
new BluetoothVoidReplyRunnable(nullptr, promise));
return promise.forget();
}