webapk: Don't swallow onbind exceptions

Browser side can't deal with returning null from onbind. Plus any
exception there is already catastrophic, there is no way to recover from
that anyway.

BUG=691846

Review-Url: https://codereview.chromium.org/2699443003
Cr-Commit-Position: refs/heads/master@{#450580}
diff --git a/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/WebApkSandboxedProcessService.java b/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/WebApkSandboxedProcessService.java
index 51fdd2a..5821960 100644
--- a/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/WebApkSandboxedProcessService.java
+++ b/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/WebApkSandboxedProcessService.java
@@ -10,6 +10,7 @@
 import android.os.IBinder;
 import android.util.Log;
 
+import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
 
 /**
@@ -56,16 +57,15 @@
         // scratch every time.
         stopSelf();
         try {
-            Method bindMethod = mChildProcessServiceImplClass.getMethod(
-                    "bind", Intent.class, int.class);
+            Method bindMethod =
+                    mChildProcessServiceImplClass.getMethod("bind", Intent.class, int.class);
             int hostBrowserUid = WebApkUtils.getHostBrowserUid(this);
             assert hostBrowserUid >= 0;
             return (IBinder) bindMethod.invoke(
                     mChildProcessServiceImplInstance, intent, hostBrowserUid);
-        } catch (Exception e) {
-            Log.v(TAG, "Unable to bind to the WebApkSandboxedProcessService.", e);
+        } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
+            throw new RuntimeException(e);
         }
-        return null;
     }
 
     @Override