зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1651016 - Convert remaining NS_ENSURE_TRUE to QM_TRY; r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D83953
This commit is contained in:
Родитель
d9083e868b
Коммит
8e9d12cff6
|
@ -7468,10 +7468,10 @@ nsresult QuotaManager::GetInfoFromWindow(nsPIDOMWindowOuter* aWindow,
|
|||
MOZ_ASSERT(aWindow);
|
||||
|
||||
nsCOMPtr<nsIScriptObjectPrincipal> sop = do_QueryInterface(aWindow);
|
||||
NS_ENSURE_TRUE(sop, NS_ERROR_FAILURE);
|
||||
QM_TRY(OkIf(sop), NS_ERROR_FAILURE);
|
||||
|
||||
nsCOMPtr<nsIPrincipal> principal = sop->GetPrincipal();
|
||||
NS_ENSURE_TRUE(principal, NS_ERROR_FAILURE);
|
||||
QM_TRY(OkIf(principal), NS_ERROR_FAILURE);
|
||||
|
||||
nsresult rv = GetInfoFromPrincipal(principal, aSuffix, aGroup, aOrigin);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
|
Загрузка…
Ссылка в новой задаче