[New PassKit] Gracefully handle pkpass download on iPad.
On iPad PKAddPassesViewController alloc/init returns nil. This CL fixes a crash, which caused by presenting nil view controller. The functional behavior remains the same as for old pass kit implementaiton (the error is silentry ignored). This issues is tracked in a separate bug (crbug.com/794301). Bug: 787943 Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs Change-Id: Id3826fa13d5c327795d411b3ec7b9c5d343031c1 Reviewed-on: https://chromium-review.googlesource.com/823239Reviewed-by:Gregory Chatzinoff <gchatz@chromium.org> Commit-Queue: Eugene But <eugenebut@chromium.org> Cr-Commit-Position: refs/heads/master@{#523804}
Showing
Please register or sign in to comment