| Index: content/browser/memory/memory_coordinator_impl.cc
|
| diff --git a/content/browser/memory/memory_coordinator_impl.cc b/content/browser/memory/memory_coordinator_impl.cc
|
| index d0b138dfc034f90473521d82e797296b30631169..1f59ea6761bbc23c4f80536aebcd6127d715c8cb 100644
|
| --- a/content/browser/memory/memory_coordinator_impl.cc
|
| +++ b/content/browser/memory/memory_coordinator_impl.cc
|
| @@ -147,11 +147,12 @@ MemoryCoordinatorImpl::MemoryCoordinatorImpl(
|
| }
|
|
|
| MemoryCoordinatorImpl::~MemoryCoordinatorImpl() {
|
| + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
| base::MemoryCoordinatorProxy::SetMemoryCoordinator(nullptr);
|
| }
|
|
|
| void MemoryCoordinatorImpl::Start() {
|
| - DCHECK(CalledOnValidThread());
|
| + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
| DCHECK(last_state_change_.is_null());
|
|
|
| notification_registrar_.Add(
|
| @@ -304,7 +305,7 @@ void MemoryCoordinatorImpl::Observe(int type,
|
|
|
| MemoryState MemoryCoordinatorImpl::GetStateForProcess(
|
| base::ProcessHandle handle) {
|
| - DCHECK(CalledOnValidThread());
|
| + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
| if (handle == base::kNullProcessHandle)
|
| return MemoryState::UNKNOWN;
|
| if (handle == base::GetCurrentProcessHandle())
|
| @@ -320,7 +321,7 @@ MemoryState MemoryCoordinatorImpl::GetStateForProcess(
|
|
|
| void MemoryCoordinatorImpl::UpdateConditionIfNeeded(
|
| MemoryCondition next_condition) {
|
| - DCHECK(CalledOnValidThread());
|
| + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
|
|
| if (next_condition == MemoryCondition::WARNING)
|
| policy_->OnWarningCondition();
|
|
|