Refactor CheckForTypeError in NavigatorShare
CheckForTypeError returned a String, and it is non-empty if TypeError is expected. This style is not obvious. This CL makes it to return what canShare() returns, and do not process URL if |data.url| is not present. Bug: 839389 Change-Id: Ie7eede5e33b16947aeffcb5c144f95940bb5d82a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2237213 Commit-Queue: Hitoshi Yoshida <peria@chromium.org> Commit-Queue: Kentaro Hara <haraken@chromium.org> Auto-Submit: Hitoshi Yoshida <peria@chromium.org> Reviewed-by:Kentaro Hara <haraken@chromium.org> Reviewed-by:
Yuki Shiino <yukishiino@chromium.org> Cr-Commit-Position: refs/heads/master@{#776894}
Showing
Please register or sign in to comment