| Index: components/keyed_service/core/keyed_service_base_factory.cc
|
| diff --git a/components/keyed_service/core/keyed_service_base_factory.cc b/components/keyed_service/core/keyed_service_base_factory.cc
|
| index 48643305759bcc97660622b7d38adfefcfbbbdfa..773b1f941c915493e959005042c7df7008581f0a 100644
|
| --- a/components/keyed_service/core/keyed_service_base_factory.cc
|
| +++ b/components/keyed_service/core/keyed_service_base_factory.cc
|
| @@ -53,6 +53,7 @@ KeyedServiceBaseFactory::KeyedServiceBaseFactory(const char* service_name,
|
| }
|
|
|
| KeyedServiceBaseFactory::~KeyedServiceBaseFactory() {
|
| + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
| dependency_manager_->RemoveComponent(this);
|
| }
|
|
|
| @@ -88,7 +89,7 @@ void KeyedServiceBaseFactory::AssertContextWasntDestroyed(
|
| }
|
|
|
| void KeyedServiceBaseFactory::MarkContextLive(base::SupportsUserData* context) {
|
| - DCHECK(CalledOnValidThread());
|
| + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
| dependency_manager_->MarkContextLive(context);
|
| }
|
|
|
| @@ -104,7 +105,7 @@ void KeyedServiceBaseFactory::ContextDestroyed(
|
| base::SupportsUserData* context) {
|
| // While object destruction can be customized in ways where the object is
|
| // only dereferenced, this still must run on the UI thread.
|
| - DCHECK(CalledOnValidThread());
|
| + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
| registered_preferences_.erase(context);
|
| }
|
|
|
|
|