Fix invalid NSError initializations.
Initialize NSError with the designated initializer to prevent the
following message from being printing to the console.
    -[NSError init] called; this results in an invalid NSError instance.
    It will raise an exception in a future release. Please call
    errorWithDomain:code:userInfo: or initWithDomain:code:userInfo:.
    This message shown only once.
Bug: None
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I94ac7664f7254126a5e2095d7c22c76497615c04
Reviewed-on: https://chromium-review.googlesource.com/1110490Reviewed-by: 
Eugene But <eugenebut@chromium.org>
Commit-Queue: Mike Dougherty <michaeldo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569429}
Showing
Please register or sign in to comment