Remove INVALIDATE_TYPE_LOAD and INVALIDATE_TYPE_TAB on WebContentsImpl::LoadStateChanged()
Since WebContentsImpl::DidStartLoading/DidStopLoading is already sending NotifyNavigationStateChanged(INVALIDATE_TYPE_LOAD) by way of LoadingStateChanged, it's no longer necessary to send this out in WebContentsImpl::LoadStateChanged. This change can reduce the number of call of TabStripModelObserver.TabChangedAt with TabChangeType.kAll a lot to increase performance throughout the browser Bug: 1112496 Change-Id: I96d8942d7e1ebd5ffc8b3f3389497936f62848c7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2357960 Commit-Queue: Yuheng Huang <yuhengh@chromium.org> Reviewed-by:Avi Drissman <avi@chromium.org> Cr-Commit-Position: refs/heads/master@{#798852}
Showing
Please register or sign in to comment