зеркало из https://github.com/mozilla/gecko-dev.git
Added assert to scream when the browsing profile can't be loaded.
This commit is contained in:
Родитель
a2cd06c2da
Коммит
985938caa4
|
@ -33,8 +33,12 @@ nsConstructBrowsingProfile(nsISupports *aOuter, REFNSIID aIID, void **aResult)
|
|||
NS_ASSERTION(aOuter == nsnull, "no aggregation");
|
||||
nsIBrowsingProfile* brprof;
|
||||
rv = NS_NewBrowsingProfile(nsnull, &brprof);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_ERROR("Unable to construct browsing profile");
|
||||
return rv;
|
||||
}
|
||||
rv = brprof->QueryInterface(aIID, aResult);
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to find correct interface");
|
||||
NS_RELEASE(brprof);
|
||||
return rv;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче