• Mike Dougherty's avatar
    Fix invalid NSError initializations. · 4cd13b43
    Mike Dougherty authored
    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: default avatarEugene But <eugenebut@chromium.org>
    Commit-Queue: Mike Dougherty <michaeldo@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#569429}
    4cd13b43
navigation_context_impl_unittest.mm 8.14 KB