Commit d523c911 authored by Takashi Toyoshima's avatar Takashi Toyoshima Committed by Commit Bot

ResourceLoadScheduler: switch to use DCHECK instead of SECURITY_CHECK

Since I ensure that the assumption is correct, I will replace
one existing SECURITY_CHECK with DCHECK as I planned.

Bug: 768325
Change-Id: I1a653d8d3d3a7e62df537e9e4d3017798078a108
Reviewed-on: https://chromium-review.googlesource.com/681394Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
Reviewed-by: default avatarYutaka Hirano <yhirano@chromium.org>
Commit-Queue: Takashi Toyoshima <toyoshim@chromium.org>
Cr-Commit-Position: refs/heads/master@{#504294}
parent a2c83987
......@@ -78,9 +78,7 @@ void ResourceLoadScheduler::Shutdown() {
if (!is_enabled_)
return;
auto* scheduler = context_->GetFrameScheduler();
// TODO(toyoshim): Replace SECURITY_CHECK below with DCHECK before the next
// branch-cut.
SECURITY_CHECK(scheduler);
DCHECK(scheduler);
scheduler->RemoveThrottlingObserver(WebFrameScheduler::ObserverType::kLoader,
this);
}
......
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