| Index: components/keyed_service/ios/browser_state_keyed_service_factory.cc
|
| diff --git a/components/keyed_service/ios/browser_state_keyed_service_factory.cc b/components/keyed_service/ios/browser_state_keyed_service_factory.cc
|
| index a981c3d83dbefe8cfd449dca5bd34bb0579a5632..105e6992ce4b7a681dbe3a44c9d363d8cc9b8051 100644
|
| --- a/components/keyed_service/ios/browser_state_keyed_service_factory.cc
|
| +++ b/components/keyed_service/ios/browser_state_keyed_service_factory.cc
|
| @@ -42,12 +42,9 @@ KeyedService* BrowserStateKeyedServiceFactory::GetServiceForBrowserState(
|
|
|
| web::BrowserState* BrowserStateKeyedServiceFactory::GetBrowserStateToUse(
|
| web::BrowserState* context) const {
|
| + // TODO(crbug.com/701326): This DCHECK should be moved to GetContextToUse().
|
| DCHECK(CalledOnValidThread());
|
|
|
| -#ifndef NDEBUG
|
| - AssertContextWasntDestroyed(context);
|
| -#endif
|
| -
|
| // Safe default for Incognito mode: no service.
|
| if (context->IsOffTheRecord())
|
| return nullptr;
|
| @@ -86,6 +83,7 @@ bool BrowserStateKeyedServiceFactory::IsOffTheRecord(
|
|
|
| base::SupportsUserData* BrowserStateKeyedServiceFactory::GetContextToUse(
|
| base::SupportsUserData* context) const {
|
| + AssertContextWasntDestroyed(context);
|
| return GetBrowserStateToUse(static_cast<web::BrowserState*>(context));
|
| }
|
|
|
|
|