Clean shut down for //ios/web_view.
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:Mike Dougherty <michaeldo@chromium.org> Cr-Commit-Position: refs/heads/master@{#523991}
Showing
Please register or sign in to comment