Commit f6807bb5 authored by Eric Roman's avatar Eric Roman Committed by Commit Bot

Add back a threading DCHECK to ThrottlingController.

Bug: 960874
Change-Id: Iecc7c1a4e22dcc79ac7de28cfc7090339b883f38
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2151889
Commit-Queue: Eric Roman <eroman@chromium.org>
Commit-Queue: Matt Menke <mmenke@chromium.org>
Auto-Submit: Eric Roman <eroman@chromium.org>
Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#759501}
parent 768d4f9d
...@@ -57,6 +57,9 @@ bool ThrottlingController::HasInterceptor( ...@@ -57,6 +57,9 @@ bool ThrottlingController::HasInterceptor(
// Null |instance_| means there is no network condition registered. // Null |instance_| means there is no network condition registered.
if (!instance_) if (!instance_)
return false; return false;
DCHECK_CALLED_ON_VALID_THREAD(instance_->thread_checker_);
return instance_->interceptors_.find(throttling_profile_id) != return instance_->interceptors_.find(throttling_profile_id) !=
instance_->interceptors_.end(); instance_->interceptors_.end();
} }
......
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