[Android WebAPK] Do not crash on empty share intent
This CL fixes a java.lang.StringIndexOutOfBoundsException in
HostBrowserLauncherParams#createWebShareTargetUriString() when the WebAPK receives the following
share intent:
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setTyle("text/plain");
BUG=None
TEST=HostBrowserLauncherParamsTest.*
Change-Id: If14cafcb43ed3f7668a7165e071674027713316d
Reviewed-on: https://chromium-review.googlesource.com/c/1285069
Commit-Queue: Ethan Xu <xuethan@google.com>
Reviewed-by:
Peter Kotwicz <pkotwicz@chromium.org>
Reviewed-by:
Glenn Hartmann <hartmanng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600956}
Showing
Please register or sign in to comment