• John Z Wu's avatar
    Clean shut down for //ios/web_view. · c24f6f7d
    John Z Wu authored
    If you quit the app in iOS multitasking, it DCHECKs in a few places. This makes it impossible to
    write integration tests.
    
    This happens because, in our current setup, ObjC classes stay around longer than C++ classes.
    More specifically, CWVWebViewConfiguration stays around longer than WebViewWebMainParts.
    Since any client may retain CWVWebViewConfiguration for any reason, we cannot rely on dealloc to
    clean things up. Instead, a |shutDown| method is used to tear things down in the proper order.
    
    Bug: 733452
    Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
    Change-Id: I5c7b3e2f5fc81ee9d67e3a8a499301e4c814726e
    Reviewed-on: https://chromium-review.googlesource.com/825444
    Commit-Queue: John Wu <jzw@chromium.org>
    Reviewed-by: default avatarMike Dougherty <michaeldo@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#523991}
    c24f6f7d
cwv_web_view_internal.h 589 Bytes