Bug 1630229: Part 8 - Stop throwing AssertionError for binding of defunct ServiceAllocator.InstanceInfo; r=geckoview-reviewers,owlish

I'm keeping this patch as simple as possible so that we can uplift to beta.
I'll sort out the rest of this in follow-up bugs.

Differential Revision: https://phabricator.services.mozilla.com/D76333
This commit is contained in:
Aaron Klotz 2020-05-21 17:53:08 +00:00
Родитель 7b19f0d6d4
Коммит 06cd8d0427
1 изменённых файлов: 1 добавлений и 5 удалений

Просмотреть файл

@ -214,11 +214,7 @@ import java.util.Map.Entry;
protected boolean bindService() {
if (mIsDefunct) {
final String errorMsg = "Attempt to bind a defunct InstanceInfo for " + mType + " child process";
if (BuildConfig.DEBUG) {
throw new AssertionError(errorMsg);
} else {
throw new BindException(errorMsg);
}
throw new BindException(errorMsg);
}
return updateBindings();