Commit aad14348 authored by Francois Doray's avatar Francois Doray Committed by Commit Bot

[PM] Remove expectation that DidStartLoading/DidStopLoading are invoked in...

[PM] Remove expectation that DidStartLoading/DidStopLoading are invoked in alternance in PageLoadMetricsWebContentsObserver.

R=chrisha@chromium.org

Bug: 1145482, 1145572
Change-Id: Icedfcd1675de8751cf17ee44d396090270131ced
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2519478
Auto-Submit: François Doray <fdoray@chromium.org>
Reviewed-by: default avatarChris Hamilton <chrisha@chromium.org>
Commit-Queue: François Doray <fdoray@chromium.org>
Cr-Commit-Position: refs/heads/master@{#824036}
parent 0eeafca7
...@@ -179,8 +179,12 @@ bool PageLoadMetricsWebContentsObserver::IsDevTools() const { ...@@ -179,8 +179,12 @@ bool PageLoadMetricsWebContentsObserver::IsDevTools() const {
} }
void PageLoadMetricsWebContentsObserver::DidStartLoading() { void PageLoadMetricsWebContentsObserver::DidStartLoading() {
DCHECK(!is_loading_);
DCHECK(web_contents()->IsLoading()); DCHECK(web_contents()->IsLoading());
// TODO(crbug.com/1145572): Uncomment this DCHECK once there is a guarantee
// that DidStartLoading and DidStopLoading are invoked in alternance.
// DCHECK(!is_loading_);
is_loading_ = true; is_loading_ = true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment