Use a map to store WebFrame in WebFramesManagerImpl
Change the implementation of the WebFramesManagerImpl to use a map instead of a vector. WebFrames are uniquely identified by frameID, so having a map frameID -> WebFrame will ensure that there uniqueness and make lookup easier and faster (log(N) instead of N). Bug: 851636 Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet Change-Id: If3c76acd8b1bd05a57821c87b571cffa7b8d3607 Reviewed-on: https://chromium-review.googlesource.com/1142781 Commit-Queue: Olivier Robin <olivierrobin@chromium.org> Reviewed-by:Eugene But <eugenebut@chromium.org> Reviewed-by:
Mike Dougherty <michaeldo@chromium.org> Cr-Commit-Position: refs/heads/master@{#585469}
Showing
Please register or sign in to comment