Commit 07d44d20 authored by Aaron Klotz's avatar Aaron Klotz
Browse files

Bug 1630229: Part 8 - Stop throwing AssertionError for binding of defunct...

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

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
parent d3f486b8
......@@ -4,7 +4,6 @@
package org.mozilla.gecko.process;
import org.mozilla.geckoview.BuildConfig;
import org.mozilla.gecko.annotation.WrapForJNI;
import org.mozilla.gecko.GeckoAppShell;
import org.mozilla.gecko.util.XPCOMEventTarget;
......@@ -210,11 +209,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();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment